Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 114.5 kB / 18.41 MB, free: 4.695 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.001716/0.001716, allocations: 186.2 kB / 19.34 MB, free: 3.777 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.284/1.284, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001166/0.001166, allocations: 51.92 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07117/0.07234, allocations: 46.62 MB / 375.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1643/0.2367, allocations: 21.67 MB / 397.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01226/0.249, allocations: 6.434 MB / 404 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003459/0.2525, allocations: 124.8 kB / 404.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004111/0.2567, allocations: 1.537 MB / 405.6 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006163/0.2628, allocations: 2.136 MB / 407.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002918/0.2658, allocations: 1.308 MB / 409.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007653/0.2734, allocations: 6.53 MB / 415.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006902/0.2804, allocations: 5.511 MB / 421.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004093/0.2845, allocations: 2.991 MB / 424.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005183/0.2897, allocations: 3.569 MB / 427.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/0.2909, allocations: 0.8164 MB / 428.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.2933, allocations: 1.105 MB / 429.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001615/0.2949, allocations: 2.022 MB / 431.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003472/0.2984, allocations: 3.539 MB / 435.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009302/0.3077, allocations: 10.78 MB / 445.9 MB, free: 9.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3077, allocations: 4 kB / 445.9 MB, free: 9.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3077, allocations: 0 / 445.9 MB, free: 9.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001742/0.3079, allocations: 4 kB / 445.9 MB, free: 9.352 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01475/0.3227, allocations: 6.922 MB / 452.9 MB, free: 2.348 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3227, allocations: 8.031 kB / 452.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004711/0.3274, allocations: 1.059 MB / 453.9 MB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005908/0.3333, allocations: 3.527 MB / 457.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000264/0.3336, allocations: 407.2 kB / 457.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007391/0.3344, allocations: 0.5271 MB / 458.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/0.3452, allocations: 7.052 MB / 465.4 MB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.3453, allocations: 15.84 kB / 465.4 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004952/0.3458, allocations: 216 kB / 465.6 MB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/0.3461, allocations: 266.6 kB / 465.9 MB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009547/0.3556, allocations: 5.929 MB / 471.8 MB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03021/0.3859, allocations: 22.16 MB / 494 MB, free: 8.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007771/0.3937, allocations: 8.285 MB / 0.4905 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003132/0.3968, allocations: 2.159 MB / 0.4926 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009729/0.4065, allocations: 6.164 MB / 0.4986 GB, free: 6.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4066, allocations: 64.55 kB / 0.4987 GB, free: 6.746 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.719e-06/0.4066, allocations: 3.984 kB / 0.4987 GB, free: 6.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02083/0.4275, allocations: 11.15 MB / 0.5096 GB, free: 11.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.4275, allocations: 77.41 kB / 0.5097 GB, free: 11.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/0.4317, allocations: 3.148 MB / 0.5127 GB, free: 8.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.4319, allocations: 65.7 kB / 0.5128 GB, free: 8.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.4335, allocations: 2.502 MB / 0.5153 GB, free: 5.488 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000604/0.4341, allocations: 0.8241 MB / 0.5161 GB, free: 4.652 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008276/0.435, allocations: 0.5653 MB / 0.5166 GB, free: 4.078 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.193e-05/0.435, allocations: 301.1 kB / 0.5169 GB, free: 3.781 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/0.4372, allocations: 1.33 MB / 0.5182 GB, free: 2.449 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002764/0.44, allocations: 2.347 MB / 0.5205 GB, free: 15.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005222/0.4452, allocations: 3.916 MB / 0.5243 GB, free: 11.26 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.259e-05/0.4453, allocations: 12 kB / 0.5243 GB, free: 11.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00739/0.4526, allocations: 4.702 MB / 0.5289 GB, free: 6.438 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.4527, allocations: 24.12 kB / 0.5289 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.742e-05/0.4528, allocations: 32 kB / 0.529 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.4539, allocations: 0.5225 MB / 0.5295 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/0.4567, allocations: 0.7449 MB / 0.5302 GB, free: 5.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/0.4656, allocations: 10.3 MB / 0.5403 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/0.4679, allocations: 175.8 kB / 0.5404 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002331/0.4681, allocations: 144 kB / 0.5406 GB, free: 9.789 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.002395/0.4705, allocations: 1.574 MB / 0.5421 GB, free: 8.203 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/0.471, allocations: 343.8 kB / 0.5424 GB, free: 7.863 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006771/0.4778, allocations: 4.049 MB / 0.5464 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-05/0.4779, allocations: 15.89 kB / 0.5464 GB, free: 3.699 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.4779, allocations: 0 / 0.5464 GB, free: 3.699 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.4792, allocations: 0.6881 MB / 0.5471 GB, free: 2.988 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005194/0.4798, allocations: 51.98 kB / 0.5471 GB, free: 2.938 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/0.4814, allocations: 147.8 kB / 0.5473 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.4818, allocations: 185.7 kB / 0.5474 GB, free: 2.613 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1741/0.6559, allocations: 3.811 MB / 0.5512 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007876/0.6639, allocations: 4.774 MB / 0.5558 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001961/0.6658, allocations: 1.358 MB / 0.5572 GB, free: 144.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003655/0.6695, allocations: 2.127 MB / 0.5592 GB, free: 143.5 MB / 478.1 MB Notification: Performance of Backend: time 8.82e-07/0.6695, allocations: 3.25 kB / 0.5592 GB, free: 143.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006218/0.6758, allocations: 3.26 MB / 0.5624 GB, free: 141.9 MB / 478.1 MB Notification: Performance of SimCode: time 0.01528/0.6911, allocations: 10.29 MB / 0.5725 GB, free: 136.9 MB / 478.1 MB Notification: Performance of Templates: time 0.07214/0.7632, allocations: 54.98 MB / 0.6262 GB, free: 93.3 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)