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.0008229/0.000823, allocations: 90.25 kB / 16.65 MB, free: 6.59 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.001077/0.001077, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.364/1.364, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004657/0.0004659, allocations: 16.47 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09434, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01885/0.1132, allocations: 19.14 MB / 347.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.1267, allocations: 5.819 MB / 353.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00519/0.132, allocations: 115.4 kB / 353.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005034/0.137, allocations: 1.142 MB / 354.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007818/0.1449, allocations: 1.721 MB / 356.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004316/0.1492, allocations: 1.123 MB / 357.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.1593, allocations: 6.66 MB / 364 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007451/0.1668, allocations: 4.44 MB / 368.5 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003839/0.1707, allocations: 2.03 MB / 370.5 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005524/0.1762, allocations: 2.773 MB / 373.3 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002296/0.1786, allocations: 324 kB / 373.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004308/0.1829, allocations: 0.6167 MB / 374.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003981/0.1869, allocations: 1.401 MB / 375.6 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006566/0.1935, allocations: 2.757 MB / 378.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.197/0.3905, allocations: 9.616 MB / 388 MB, free: 23.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3906, allocations: 0 / 388 MB, free: 23.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.3906, allocations: 0 / 388 MB, free: 23.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003947/0.391, allocations: 1.031 kB / 388 MB, free: 23.62 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.01799/0.409, allocations: 5.536 MB / 393.5 MB, free: 20.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.4091, allocations: 9.344 kB / 393.5 MB, free: 20.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006657/0.4157, allocations: 1.013 MB / 394.5 MB, free: 20.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007798/0.4236, allocations: 3.276 MB / 397.8 MB, free: 18.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004677/0.4241, allocations: 397.1 kB / 398.2 MB, free: 18.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.4261, allocations: 0.4995 MB / 398.7 MB, free: 18.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.4418, allocations: 6.792 MB / 405.5 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/0.442, allocations: 10.59 kB / 405.5 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005443/0.4425, allocations: 207.3 kB / 405.7 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/0.4427, allocations: 246.4 kB / 406 MB, free: 17.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.454, allocations: 5.77 MB / 411.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03915/0.4932, allocations: 21.2 MB / 432.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008682/0.5019, allocations: 8.572 MB / 441.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003878/0.5058, allocations: 2.125 MB / 443.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.5175, allocations: 5.955 MB / 449.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.099e-05/0.5177, allocations: 56.03 kB / 449.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 5.21e-06/0.5177, allocations: 4 kB / 449.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02515/0.5428, allocations: 10.41 MB / 460 MB, free: 14.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.5429, allocations: 73.41 kB / 460.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005643/0.5486, allocations: 2.908 MB / 463 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005379/0.5492, allocations: 61.7 kB / 463.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002008/0.5512, allocations: 2.355 MB / 465.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008817/0.5521, allocations: 0.7659 MB / 466.2 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00034/0.5524, allocations: 231.8 kB / 466.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5525, allocations: 301.1 kB / 466.7 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002274/0.5548, allocations: 1.29 MB / 468 MB, free: 6.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002966/0.5578, allocations: 2.192 MB / 470.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005892/0.5637, allocations: 3.702 MB / 473.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-05/0.5638, allocations: 8 kB / 473.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008718/0.5725, allocations: 4.477 MB / 478.4 MB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.5726, allocations: 16 kB / 478.4 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.258e-05/0.5727, allocations: 28 kB / 478.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.5739, allocations: 0.513 MB / 479 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/0.5768, allocations: 0.6962 MB / 479.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009096/0.5859, allocations: 9.351 MB / 489 MB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003552/0.5895, allocations: 183.8 kB / 489.2 MB, free: 88 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005247/0.59, allocations: 124 kB / 489.3 MB, free: 15.96 MB / 398.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 (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003556/0.5936, allocations: 1.517 MB / 490.8 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007894/0.5944, allocations: 328 kB / 491.1 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006835/0.6012, allocations: 3.898 MB / 495 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/0.6013, allocations: 24 kB / 495.1 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.6013, allocations: 8 kB / 495.1 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.326e-05/0.6013, allocations: 15.33 kB / 495.1 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/0.6161, allocations: 8.512 MB / 0.4918 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.6161, allocations: 4.469 kB / 0.4918 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.6178, allocations: 391.3 kB / 0.4922 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/0.6198, allocations: 0.7243 MB / 0.4929 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002005/0.62, allocations: 67.25 kB / 0.4929 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/0.6346, allocations: 15.22 MB / 0.5078 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.6346, allocations: 4 kB / 0.5078 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009192/0.6438, allocations: 5.6 MB / 0.5133 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001765/0.6456, allocations: 0.6611 MB / 0.5139 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004771/0.6461, allocations: 55.92 kB / 0.514 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.6478, allocations: 147.9 kB / 0.5141 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003994/0.6482, allocations: 167.1 kB / 0.5143 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.6483, allocations: 71.97 kB / 0.5143 GB, free: 9.344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003414/0.6518, allocations: 1.967 MB / 0.5163 GB, free: 7.379 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6518, allocations: 0 / 0.5163 GB, free: 7.379 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004154/0.6559, allocations: 0.93 MB / 0.5172 GB, free: 6.449 MB / 430.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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006764/0.6566, allocations: 244.2 kB / 0.5174 GB, free: 6.223 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006471/0.6631, allocations: 3.983 MB / 0.5213 GB, free: 2.242 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/0.6632, allocations: 4.812 kB / 0.5213 GB, free: 2.238 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2131/0.8763, allocations: 2.668 MB / 0.5239 GB, free: 147.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00782/0.8842, allocations: 0.7886 MB / 0.5247 GB, free: 147 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02324/0.9074, allocations: 11.96 MB / 0.5363 GB, free: 141.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00382/0.9113, allocations: 3.31 MB / 0.5396 GB, free: 140.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002852/0.9142, allocations: 0.748 MB / 0.5403 GB, free: 140.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.9149, allocations: 224 kB / 0.5405 GB, free: 140.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9149, allocations: 0 / 0.5405 GB, free: 140.1 MB / 430.1 MB Notification: Performance of Templates: time 0.07271/0.9876, allocations: 44.93 MB / 0.5844 GB, free: 101.4 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (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)