Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00227/0.00227, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001155, allocations: 101.2 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003748, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3207, allocations: 47.56 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.5013, allocations: 108.1 MB / 482.8 MB, free: 4.473 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.5017, allocations: 87.95 kB / 482.8 MB, free: 4.387 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5712/1.073, allocations: 79.46 MB / 0.5491 GB, free: 66.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.205e-06/1.073, allocations: 0 / 0.5491 GB, free: 66.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003146/1.073, allocations: 79.88 kB / 0.5492 GB, free: 66.05 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01479/1.088, allocations: 3.458 MB / 0.5526 GB, free: 62.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/1.088, allocations: 8.031 kB / 0.5526 GB, free: 62.51 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001852/1.09, allocations: 454.9 kB / 0.553 GB, free: 62.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006124/1.096, allocations: 0.7219 MB / 0.5537 GB, free: 61.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/1.108, allocations: 3.316 MB / 0.557 GB, free: 57.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003178/1.108, allocations: 238.3 kB / 0.5572 GB, free: 57.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/1.11, allocations: 315.9 kB / 0.5575 GB, free: 57.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/1.122, allocations: 4.139 MB / 0.5615 GB, free: 53.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/1.123, allocations: 0 / 0.5615 GB, free: 53.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005555/1.123, allocations: 128 kB / 0.5617 GB, free: 53.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/1.123, allocations: 146.3 kB / 0.5618 GB, free: 52.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/1.134, allocations: 3.406 MB / 0.5651 GB, free: 49.47 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03157/1.166, allocations: 13.25 MB / 0.5781 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009739/1.175, allocations: 6.9 MB / 0.5848 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008001/1.183, allocations: 3.219 MB / 0.5879 GB, free: 24.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/1.184, allocations: 51.83 kB / 0.588 GB, free: 24.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=131): time 4.148e-06/1.184, allocations: 0 / 0.588 GB, free: 24.73 MB / 378.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[1] ; aimc.is[2] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=161): time 0.02393/1.207, allocations: 7.347 MB / 0.5952 GB, free: 17.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/1.208, allocations: 68.72 kB / 0.5952 GB, free: 17.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003042/1.211, allocations: 1.474 MB / 0.5967 GB, free: 15.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/1.211, allocations: 53.7 kB / 0.5967 GB, free: 15.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008911/1.212, allocations: 1.33 MB / 0.598 GB, free: 14.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005868/1.212, allocations: 0.5506 MB / 0.5986 GB, free: 13.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/1.213, allocations: 43.94 kB / 0.5986 GB, free: 13.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/1.213, allocations: 378.8 kB / 0.599 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/1.215, allocations: 0.8082 MB / 0.5998 GB, free: 12.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002352/1.217, allocations: 1.266 MB / 0.601 GB, free: 10.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/1.22, allocations: 1.044 MB / 0.602 GB, free: 9.941 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/1.22, allocations: 7.953 kB / 0.602 GB, free: 9.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007523/1.228, allocations: 2.769 MB / 0.6047 GB, free: 7.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.326e-05/1.228, allocations: 12 kB / 0.6047 GB, free: 7.133 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.595e-05/1.228, allocations: 15.94 kB / 0.6047 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002526/1.23, allocations: 0.5829 MB / 0.6053 GB, free: 6.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/1.233, allocations: 379.4 kB / 0.6057 GB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.248, allocations: 8.774 MB / 0.6142 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/1.25, allocations: 83.86 kB / 0.6143 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/1.251, allocations: 75.98 kB / 0.6144 GB, free: 12.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,93.8%) 30,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003019/1.254, allocations: 1.035 MB / 0.6154 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006551/1.254, allocations: 189.7 kB / 0.6156 GB, free: 11.59 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008237/1.263, allocations: 2.701 MB / 0.6182 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/1.263, allocations: 16 kB / 0.6182 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/1.263, allocations: 12 kB / 0.6183 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-05/1.263, allocations: 7.969 kB / 0.6183 GB, free: 8.789 MB / 394.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/1.28, allocations: 5.818 MB / 0.6239 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.31e-05/1.281, allocations: 7.938 kB / 0.624 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002388/1.283, allocations: 251.8 kB / 0.6242 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002727/1.286, allocations: 0.5616 MB / 0.6247 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003455/1.286, allocations: 39.98 kB / 0.6248 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0184/1.305, allocations: 9.999 MB / 0.6345 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/1.305, allocations: 3.938 kB / 0.6345 GB, free: 7.43 MB / 410.7 MB Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/1.316, allocations: 3.918 MB / 0.6384 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.318, allocations: 462.6 kB / 0.6388 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005823/1.319, allocations: 39.98 kB / 0.6389 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002075/1.321, allocations: 83.94 kB / 0.6389 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004878/1.321, allocations: 121 kB / 0.639 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/1.321, allocations: 47.98 kB / 0.6391 GB, free: 2.621 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003146/1.325, allocations: 1.13 MB / 0.6402 GB, free: 1.496 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.325, allocations: 0 / 0.6402 GB, free: 1.496 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003843/1.328, allocations: 0.6446 MB / 0.6408 GB, free: 0.8516 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.is[3],aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,72.0%) 29,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Warning: The linear system: 1 : 3.0 * aimc.stator.zeroInductor.i0 = aimc.is[1] + aimc.is[2] + aimc.is[3] 2 : aimc.is[1] + aimc.is[2] + aimc.is[3] = 0.0 [ -1.0 , -1.0 ; 1.0 , 1.0 ] * [ aimc.is[2] ; aimc.is[1] ] = [ aimc.is[3] + (-3.0) * aimc.stator.zeroInductor.i0 ; -aimc.is[3] ] might be structurally or numerically singular for variable aimc.is[1] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of Backend phase and start with SimCode phase: time 0.3051/1.634, allocations: 5.099 MB / 0.6458 GB, free: 92.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007156/1.641, allocations: 2.741 MB / 0.6485 GB, free: 92.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.641, allocations: 0 / 0.6485 GB, free: 92.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004485/1.645, allocations: 1.736 MB / 0.6502 GB, free: 91.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003965/1.649, allocations: 484.4 kB / 0.6506 GB, free: 91.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04914/1.699, allocations: 25.84 MB / 0.6759 GB, free: 76.63 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004155/1.703, allocations: 2.35 MB / 0.6782 GB, free: 75.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002952/1.706, allocations: 1.135 MB / 0.6793 GB, free: 75.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.774e-06/1.706, allocations: 0 / 0.6793 GB, free: 75.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.779/5.485, allocations: 115.8 MB / 0.7924 GB, free: 1.723 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)