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.001056/0.001056, allocations: 105.7 kB / 18.4 MB, free: 4.68 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.001012/0.001012, allocations: 187 kB / 19.34 MB, free: 3.754 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.244/1.244, 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.001205/0.001205, allocations: 47.92 kB / 329.2 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07063/0.07184, allocations: 46.61 MB / 375.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1611/0.233, allocations: 21.68 MB / 397.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.245, allocations: 6.431 MB / 404 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003258/0.2483, allocations: 125.7 kB / 404.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003985/0.2523, allocations: 1.543 MB / 405.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006191/0.2585, allocations: 2.132 MB / 407.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003448/0.262, allocations: 1.308 MB / 409.1 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007953/0.2699, allocations: 6.533 MB / 415.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007022/0.277, allocations: 5.503 MB / 421.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004052/0.281, allocations: 3.008 MB / 424.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005191/0.2862, allocations: 3.561 MB / 427.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009897/0.2872, allocations: 0.8164 MB / 428.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001923/0.2892, allocations: 1.105 MB / 429.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.2908, allocations: 2.018 MB / 431.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003265/0.294, allocations: 3.535 MB / 435.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009095/0.3032, allocations: 10.79 MB / 445.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3032, allocations: 0 / 445.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3032, allocations: 0 / 445.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001551/0.3033, allocations: 0 / 445.9 MB, free: 9.344 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.01432/0.3177, allocations: 6.926 MB / 452.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3177, allocations: 12.02 kB / 452.9 MB, free: 2.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004717/0.3224, allocations: 1.063 MB / 453.9 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005489/0.328, allocations: 3.516 MB / 457.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.3282, allocations: 403.2 kB / 457.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007373/0.329, allocations: 0.5349 MB / 458.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.3403, allocations: 7.045 MB / 465.4 MB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.3405, allocations: 11.91 kB / 465.4 MB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004908/0.341, allocations: 220 kB / 465.6 MB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/0.3412, allocations: 258.6 kB / 465.9 MB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01001/0.3512, allocations: 5.944 MB / 471.8 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03227/0.3835, allocations: 22.16 MB / 494 MB, free: 8.441 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007683/0.3912, allocations: 8.281 MB / 0.4905 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003205/0.3945, allocations: 2.159 MB / 0.4926 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.4046, allocations: 6.168 MB / 0.4986 GB, free: 6.809 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.4047, allocations: 60.56 kB / 0.4987 GB, free: 6.738 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.368e-06/0.4047, allocations: 0 / 0.4987 GB, free: 6.738 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02169/0.4264, allocations: 11.15 MB / 0.5096 GB, free: 11.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.4264, allocations: 73.41 kB / 0.5097 GB, free: 11.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.4306, allocations: 3.152 MB / 0.5127 GB, free: 8.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.4308, allocations: 61.7 kB / 0.5128 GB, free: 8.023 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.4323, allocations: 2.498 MB / 0.5152 GB, free: 5.496 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006094/0.4329, allocations: 0.8241 MB / 0.516 GB, free: 4.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000807/0.4338, allocations: 0.5652 MB / 0.5166 GB, free: 4.086 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.177e-05/0.4338, allocations: 305.1 kB / 0.5169 GB, free: 3.785 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/0.436, allocations: 1.334 MB / 0.5182 GB, free: 2.449 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002747/0.4387, allocations: 2.339 MB / 0.5205 GB, free: 15.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005097/0.4439, allocations: 3.92 MB / 0.5243 GB, free: 11.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.4439, allocations: 12 kB / 0.5243 GB, free: 11.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007449/0.4513, allocations: 4.701 MB / 0.5289 GB, free: 6.445 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.4514, allocations: 16.66 kB / 0.5289 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/0.4514, allocations: 35.98 kB / 0.529 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.4526, allocations: 0.5372 MB / 0.5295 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/0.4554, allocations: 0.7371 MB / 0.5302 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008656/0.464, allocations: 10.29 MB / 0.5402 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/0.4665, allocations: 187.8 kB / 0.5404 GB, free: 9.922 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002164/0.4667, allocations: 144 kB / 0.5406 GB, free: 9.781 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.00243/0.4692, allocations: 1.567 MB / 0.5421 GB, free: 8.203 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/0.4697, allocations: 347.8 kB / 0.5424 GB, free: 7.859 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00667/0.4764, allocations: 4.049 MB / 0.5464 GB, free: 3.711 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.303e-05/0.4764, allocations: 11.95 kB / 0.5464 GB, free: 3.699 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.4764, allocations: 3.938 kB / 0.5464 GB, free: 3.695 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.4776, allocations: 0.6959 MB / 0.5471 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004475/0.4781, allocations: 48 kB / 0.5471 GB, free: 2.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.4797, allocations: 151.8 kB / 0.5473 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003269/0.48, allocations: 181.7 kB / 0.5474 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1622/0.6422, allocations: 3.812 MB / 0.5512 GB, free: 145.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007021/0.6492, allocations: 4.774 MB / 0.5558 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001862/0.6511, allocations: 1.357 MB / 0.5571 GB, free: 144.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003016/0.6541, allocations: 2.124 MB / 0.5592 GB, free: 143.6 MB / 478.1 MB Notification: Performance of Backend: time 3.61e-07/0.6541, allocations: 1.688 kB / 0.5592 GB, free: 143.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00549/0.6596, allocations: 3.256 MB / 0.5624 GB, free: 142 MB / 478.1 MB Notification: Performance of SimCode: time 0.01411/0.6738, allocations: 10.3 MB / 0.5725 GB, free: 137 MB / 478.1 MB Notification: Performance of Templates: time 0.07185/0.7456, allocations: 54.98 MB / 0.6262 GB, free: 93.33 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)