Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0008625/0.0008626, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.0009529/0.0009531, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.4 MB / 222.1 MB, free: 5.492 MB / 174.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.000584/0.0005843, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2786, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01905/0.2977, allocations: 17.85 MB / 344.3 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.3108, allocations: 5.576 MB / 349.9 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004094/0.315, allocations: 107.5 kB / 350 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003836/0.3188, allocations: 0.986 MB / 351 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007337/0.3262, allocations: 1.593 MB / 352.6 MB, free: 9.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004281/0.3305, allocations: 0.8264 MB / 353.4 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3407, allocations: 6.145 MB / 359.6 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006154/0.3469, allocations: 3.565 MB / 363.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003951/0.3508, allocations: 1.996 MB / 365.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005031/0.3559, allocations: 2.665 MB / 367.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001145/0.3571, allocations: 324 kB / 368.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.3596, allocations: 0.566 MB / 368.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.3611, allocations: 1.37 MB / 370 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.3633, allocations: 1.128 MB / 371.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00931/0.3726, allocations: 8.36 MB / 379.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3726, allocations: 0 / 379.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3726, allocations: 0 / 379.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003203/0.373, allocations: 4 kB / 379.5 MB, free: 14.19 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.01373/0.3867, allocations: 5.595 MB / 385.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3867, allocations: 8.031 kB / 385.1 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005178/0.3919, allocations: 1.012 MB / 386.2 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006876/0.3988, allocations: 3.178 MB / 389.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003597/0.3992, allocations: 398.2 kB / 389.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/0.4004, allocations: 0.496 MB / 390.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.414, allocations: 6.759 MB / 397 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.4142, allocations: 11.89 kB / 397 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004899/0.4147, allocations: 215.9 kB / 397.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002251/0.4149, allocations: 242.2 kB / 397.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.4261, allocations: 5.732 MB / 403.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/0.4649, allocations: 21.18 MB / 424.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.4769, allocations: 8.556 MB / 432.9 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005238/0.4822, allocations: 2.128 MB / 435 MB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01623/0.4985, allocations: 5.952 MB / 441 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.325e-05/0.4986, allocations: 52.56 kB / 441 MB, free: 14.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 7.234e-06/0.4986, allocations: 0 / 441 MB, free: 14.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.03113/0.5297, allocations: 10.4 MB / 451.4 MB, free: 4.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.15e-05/0.5299, allocations: 77.41 kB / 451.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009408/0.5393, allocations: 2.881 MB / 454.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007244/0.5401, allocations: 65.7 kB / 454.5 MB, free: 1.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2998/0.8399, allocations: 2.345 MB / 456.8 MB, free: 106.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/0.8417, allocations: 0.7688 MB / 457.6 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.8421, allocations: 60.5 kB / 457.6 MB, free: 105.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003747/0.8425, allocations: 421.8 kB / 458 MB, free: 105.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003936/0.8464, allocations: 1.274 MB / 459.3 MB, free: 105.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/0.8501, allocations: 2.186 MB / 461.5 MB, free: 104 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003197/0.8533, allocations: 1.639 MB / 463.1 MB, free: 103.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.896e-05/0.8534, allocations: 8.281 kB / 463.1 MB, free: 103.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007744/0.8611, allocations: 4.463 MB / 467.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/0.8612, allocations: 19.3 kB / 467.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.906e-05/0.8613, allocations: 27.25 kB / 467.7 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/0.8625, allocations: 0.5146 MB / 468.2 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002492/0.865, allocations: 0.6985 MB / 468.9 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007869/0.8729, allocations: 9.321 MB / 478.2 MB, free: 93.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.8765, allocations: 187.4 kB / 478.4 MB, free: 93.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003935/0.877, allocations: 134.5 kB / 478.5 MB, free: 93.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004089/0.8811, allocations: 1.511 MB / 480 MB, free: 92.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/0.8823, allocations: 318.7 kB / 480.3 MB, free: 92.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006069/0.8884, allocations: 3.895 MB / 484.2 MB, free: 89.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.8884, allocations: 24 kB / 484.2 MB, free: 89.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.8884, allocations: 8 kB / 484.3 MB, free: 89.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.8884, allocations: 15.89 kB / 484.3 MB, free: 89.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.9006, allocations: 8.501 MB / 492.8 MB, free: 81.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.9006, allocations: 8.094 kB / 492.8 MB, free: 81.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.9021, allocations: 383.5 kB / 493.1 MB, free: 80.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001546/0.9037, allocations: 0.7204 MB / 493.9 MB, free: 79.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001492/0.9039, allocations: 59.97 kB / 493.9 MB, free: 79.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/0.9144, allocations: 15.2 MB / 0.4972 GB, free: 63.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.9144, allocations: 4 kB / 0.4972 GB, free: 63.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007753/0.9222, allocations: 5.576 MB / 0.5026 GB, free: 57.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.924, allocations: 0.6649 MB / 0.5033 GB, free: 57.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004291/0.9244, allocations: 48 kB / 0.5033 GB, free: 57.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.9257, allocations: 147.9 kB / 0.5035 GB, free: 57.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003905/0.9262, allocations: 169.7 kB / 0.5036 GB, free: 56.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.9263, allocations: 79.97 kB / 0.5037 GB, free: 56.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002634/0.9289, allocations: 1.94 MB / 0.5056 GB, free: 54.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9289, allocations: 3.75 kB / 0.5056 GB, free: 54.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003233/0.9322, allocations: 0.9322 MB / 0.5065 GB, free: 53.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (185): * Single equations (assignments): 177 * 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 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(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.0005011/0.9327, allocations: 217.3 kB / 0.5067 GB, free: 53.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005522/0.9382, allocations: 3.959 MB / 0.5106 GB, free: 49.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.9383, allocations: 4 kB / 0.5106 GB, free: 49.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/0.9417, allocations: 2.661 MB / 0.5132 GB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00418/0.9459, allocations: 0.8131 MB / 0.514 GB, free: 46.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.9633, allocations: 11.4 MB / 0.5251 GB, free: 34.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002654/0.966, allocations: 3.294 MB / 0.5284 GB, free: 31.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002815/0.9688, allocations: 0.7655 MB / 0.5291 GB, free: 30.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006835/0.9695, allocations: 223.4 kB / 0.5293 GB, free: 30.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.9695, allocations: 0 / 0.5293 GB, free: 30.36 MB / 382.1 MB Notification: Performance of Templates: time 0.07501/1.045, allocations: 43.79 MB / 0.5721 GB, free: 2.508 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)