Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001055/0.001056, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001223/0.001223, allocations: 168.7 kB / 15.95 MB, free: 200 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.541/1.541, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005484/0.0005484, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3204, allocations: 47.6 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02325/0.3437, allocations: 19.14 MB / 345.6 MB, free: 316 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.3613, allocations: 6.043 MB / 351.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006276/0.3677, allocations: 115.5 kB / 351.8 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005854/0.3736, allocations: 1.095 MB / 352.9 MB, free: 9.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009604/0.3833, allocations: 1.69 MB / 354.6 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005067/0.3883, allocations: 0.8733 MB / 355.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.4032, allocations: 6.53 MB / 362 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01199/0.4152, allocations: 3.694 MB / 365.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007084/0.4224, allocations: 2.124 MB / 367.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008407/0.4308, allocations: 2.805 MB / 370.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003233/0.4341, allocations: 340 kB / 370.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005259/0.4394, allocations: 0.5778 MB / 371.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004894/0.4444, allocations: 1.429 MB / 372.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004519/0.449, allocations: 1.198 MB / 374.1 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01429/0.4633, allocations: 8.749 MB / 382.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4633, allocations: 0 / 382.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4633, allocations: 0 / 382.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004908/0.4638, allocations: 0 / 382.9 MB, free: 10.88 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02022/0.4841, allocations: 5.874 MB / 388.8 MB, free: 4.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.679e-05/0.4842, allocations: 12.03 kB / 388.8 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007174/0.4913, allocations: 1.066 MB / 389.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01155/0.5029, allocations: 3.345 MB / 393.2 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006834/0.5037, allocations: 422.7 kB / 393.6 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002551/0.5062, allocations: 0.5272 MB / 394.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/0.5313, allocations: 7.024 MB / 401.1 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002232/0.5316, allocations: 11.84 kB / 401.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001156/0.5327, allocations: 220 kB / 401.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003005/0.5331, allocations: 262.6 kB / 401.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.5503, allocations: 5.925 MB / 407.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06688/0.6173, allocations: 22.53 MB / 430.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01381/0.6311, allocations: 8.283 MB / 438.4 MB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006868/0.6381, allocations: 2.202 MB / 440.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02092/0.6591, allocations: 6.209 MB / 446.8 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.6592, allocations: 56.56 kB / 446.8 MB, free: 9.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 9.558e-06/0.6593, allocations: 0 / 446.8 MB, free: 9.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.3041/0.9634, allocations: 11.3 MB / 458.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.9635, allocations: 80.34 kB / 458.2 MB, free: 105.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006593/0.9701, allocations: 3.131 MB / 461.3 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005747/0.9707, allocations: 66.61 kB / 461.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.9725, allocations: 2.502 MB / 463.9 MB, free: 102.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008486/0.9733, allocations: 0.8283 MB / 464.7 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.9735, allocations: 67.78 kB / 464.8 MB, free: 101.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.9737, allocations: 430.4 kB / 465.2 MB, free: 101.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/0.9757, allocations: 1.335 MB / 466.6 MB, free: 100.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002406/0.9782, allocations: 2.345 MB / 468.9 MB, free: 99.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00254/0.9807, allocations: 1.738 MB / 470.6 MB, free: 98.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/0.9807, allocations: 7.938 kB / 470.6 MB, free: 98.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007456/0.9882, allocations: 4.718 MB / 475.4 MB, free: 96.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.9883, allocations: 15.47 kB / 475.4 MB, free: 96.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.697e-05/0.9883, allocations: 31.38 kB / 475.4 MB, free: 96.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.9894, allocations: 0.5323 MB / 475.9 MB, free: 96.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002651/0.9921, allocations: 0.7555 MB / 476.7 MB, free: 96.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/0.999, allocations: 9.402 MB / 486.1 MB, free: 87.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003812/1.003, allocations: 196.7 kB / 486.3 MB, free: 87.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005507/1.003, allocations: 140 kB / 486.4 MB, free: 87.48 MB / 382.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 (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%) 12,(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.003399/1.007, allocations: 1.574 MB / 488 MB, free: 85.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.008, allocations: 351.8 kB / 488.3 MB, free: 85.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006485/1.015, allocations: 4.068 MB / 492.4 MB, free: 81.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/1.015, allocations: 24 kB / 492.4 MB, free: 81.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.015, allocations: 8 kB / 492.4 MB, free: 81.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-05/1.015, allocations: 15.91 kB / 492.5 MB, free: 81.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/1.033, allocations: 8.988 MB / 0.4897 GB, free: 72.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/1.033, allocations: 4 kB / 0.4897 GB, free: 72.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/1.034, allocations: 424.1 kB / 0.4901 GB, free: 71.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/1.036, allocations: 0.7285 MB / 0.4908 GB, free: 71.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002559/1.036, allocations: 75.77 kB / 0.4909 GB, free: 70.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/1.048, allocations: 15.29 MB / 0.5058 GB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.048, allocations: 11.94 kB / 0.5058 GB, free: 54.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01091/1.059, allocations: 5.863 MB / 0.5116 GB, free: 48.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002733/1.062, allocations: 0.7075 MB / 0.5123 GB, free: 47.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001363/1.063, allocations: 59.98 kB / 0.5123 GB, free: 47.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.066, allocations: 147.9 kB / 0.5125 GB, free: 47.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004919/1.066, allocations: 185.6 kB / 0.5126 GB, free: 47.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/1.067, allocations: 75.97 kB / 0.5127 GB, free: 47.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004668/1.071, allocations: 2.095 MB / 0.5147 GB, free: 45.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.071, allocations: 0 / 0.5147 GB, free: 45.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006132/1.078, allocations: 0.9952 MB / 0.5157 GB, free: 44.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008223/1.078, allocations: 220 kB / 0.5159 GB, free: 44.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007421/1.086, allocations: 4.141 MB / 0.52 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.29e-05/1.086, allocations: 0 / 0.52 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00452/1.09, allocations: 2.767 MB / 0.5227 GB, free: 36.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007895/1.098, allocations: 0.9189 MB / 0.5236 GB, free: 36.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/1.122, allocations: 11.93 MB / 0.5352 GB, free: 24.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005434/1.128, allocations: 3.411 MB / 0.5386 GB, free: 20.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004319/1.132, allocations: 0.8073 MB / 0.5393 GB, free: 19.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/1.134, allocations: 239.4 kB / 0.5396 GB, free: 19.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/1.134, allocations: 0 / 0.5396 GB, free: 19.57 MB / 382.1 MB Notification: Performance of Templates: time 0.09758/1.231, allocations: 47.52 MB / 0.586 GB, free: 3.984 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)