Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001041, allocations: 96.23 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 173.4 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004778, allocations: 16 kB / 280.1 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1138, allocations: 47.58 MB / 327.7 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01934/0.1332, allocations: 16.24 MB / 344 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.1472, allocations: 5.769 MB / 349.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003987/0.1513, allocations: 107.5 kB / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004257/0.1556, allocations: 1.006 MB / 350.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007979/0.1636, allocations: 1.682 MB / 352.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003886/0.1675, allocations: 0.8382 MB / 353.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.1789, allocations: 4.08 MB / 357.4 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009001/0.188, allocations: 3.569 MB / 361 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.1928, allocations: 1.907 MB / 362.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005433/0.1982, allocations: 2.393 MB / 365.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001844/0.2001, allocations: 320 kB / 365.6 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002944/0.2031, allocations: 0.5309 MB / 366.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002967/0.2061, allocations: 1.316 MB / 367.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002597/0.2087, allocations: 1.128 MB / 368.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.2197, allocations: 8.305 MB / 376.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2198, allocations: 0 / 376.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2198, allocations: 0 / 376.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003762/0.2202, allocations: 0 / 376.9 MB, free: 2.691 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.2162/0.4364, allocations: 5.563 MB / 382.5 MB, free: 24.67 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.4365, allocations: 9.375 kB / 382.5 MB, free: 24.67 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007098/0.4436, allocations: 1.008 MB / 383.5 MB, free: 24.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.4537, allocations: 3.226 MB / 386.7 MB, free: 23.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005372/0.4543, allocations: 400.1 kB / 387.1 MB, free: 23.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.4563, allocations: 0.4971 MB / 387.6 MB, free: 23.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0165/0.4728, allocations: 6.705 MB / 394.3 MB, free: 23.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.4729, allocations: 8.031 kB / 394.3 MB, free: 23.39 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005226/0.4735, allocations: 210.7 kB / 394.5 MB, free: 23.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002606/0.4737, allocations: 249.6 kB / 394.8 MB, free: 23.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.4846, allocations: 5.729 MB / 400.5 MB, free: 22.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03231/0.517, allocations: 21.13 MB / 421.6 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007581/0.5246, allocations: 8.54 MB / 430.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.535, allocations: 4.98 MB / 435.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.5351, allocations: 62.97 kB / 435.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=219): time 4.529e-06/0.5351, allocations: 0 / 435.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=238): time 0.02206/0.5572, allocations: 11.04 MB / 446.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.5573, allocations: 73.41 kB / 446.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/0.5613, allocations: 2.805 MB / 449.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002506/0.5616, allocations: 69.7 kB / 449.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001566/0.5632, allocations: 2.333 MB / 451.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007246/0.5639, allocations: 0.8174 MB / 452.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.5641, allocations: 64 kB / 452.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002781/0.5644, allocations: 428.1 kB / 452.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.5666, allocations: 1.318 MB / 454.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/0.5695, allocations: 2.188 MB / 456.3 MB, free: 472 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002978/0.5725, allocations: 1.69 MB / 458 MB, free: 14.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.859e-05/0.5725, allocations: 8 kB / 458 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.00811/0.5807, allocations: 4.542 MB / 462.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.5807, allocations: 16 kB / 462.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.617e-05/0.5808, allocations: 28 kB / 462.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.582, allocations: 0.5144 MB / 463.1 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002777/0.5848, allocations: 0.721 MB / 463.8 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009516/0.5943, allocations: 9.472 MB / 473.3 MB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/0.5972, allocations: 183.9 kB / 473.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002868/0.5975, allocations: 128 kB / 473.6 MB, free: 14.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002979/0.6005, allocations: 1.523 MB / 475.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007465/0.6013, allocations: 324 kB / 475.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006634/0.6079, allocations: 4.03 MB / 479.5 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.122e-05/0.608, allocations: 27.95 kB / 479.5 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.608, allocations: 8 kB / 479.5 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/0.608, allocations: 11.95 kB / 479.5 MB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.6229, allocations: 8.803 MB / 488.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/0.623, allocations: 7.953 kB / 488.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/0.6247, allocations: 426.8 kB / 488.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/0.6265, allocations: 0.7153 MB / 489.5 MB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001623/0.6267, allocations: 63.97 kB / 489.5 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01433/0.641, allocations: 15.37 MB / 0.4931 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.6411, allocations: 7.375 kB / 0.4931 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00965/0.6507, allocations: 6.262 MB / 0.4992 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/0.6527, allocations: 0.6723 MB / 0.4998 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000648/0.6534, allocations: 59.98 kB / 0.4999 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/0.655, allocations: 144 kB / 0.5 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004404/0.6554, allocations: 183.7 kB / 0.5002 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.6556, allocations: 80.16 kB / 0.5003 GB, free: 6.582 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003148/0.6587, allocations: 1.889 MB / 0.5021 GB, free: 4.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6588, allocations: 3.938 kB / 0.5021 GB, free: 4.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00355/0.6623, allocations: 0.9362 MB / 0.5031 GB, free: 3.758 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005219/0.6629, allocations: 219.4 kB / 0.5033 GB, free: 3.559 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006403/0.6693, allocations: 4.073 MB / 0.5072 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/0.6693, allocations: 0 / 0.5072 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00398/0.6733, allocations: 2.734 MB / 0.5099 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003682/0.677, allocations: 0.7815 MB / 0.5107 GB, free: 11.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.6945, allocations: 11.51 MB / 0.5219 GB, free: 348 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003081/0.6976, allocations: 3.4 MB / 0.5252 GB, free: 12.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002591/0.7002, allocations: 0.7657 MB / 0.526 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005828/0.7008, allocations: 231.4 kB / 0.5262 GB, free: 11.91 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7008, allocations: 0 / 0.5262 GB, free: 11.91 MB / 446.1 MB Notification: Performance of Templates: time 0.2499/0.9507, allocations: 43.55 MB / 0.5687 GB, free: 140.7 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: