Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001495/0.001495, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.368/1.368, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.002456/0.002456, allocations: 59.91 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2582, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02355/0.2818, allocations: 21.67 MB / 347 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.2957, allocations: 6.43 MB / 353.4 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005113/0.3009, allocations: 123.4 kB / 353.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004924/0.3058, allocations: 1.475 MB / 355 MB, free: 6.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00751/0.3134, allocations: 2.046 MB / 357.1 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003896/0.3173, allocations: 1.306 MB / 358.4 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00914/0.3264, allocations: 6.511 MB / 364.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007637/0.3341, allocations: 5.503 MB / 370.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004476/0.3386, allocations: 2.967 MB / 373.3 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005208/0.3438, allocations: 3.565 MB / 376.9 MB, free: 72 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00149/0.3453, allocations: 0.8165 MB / 377.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002427/0.3477, allocations: 1.105 MB / 378.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00172/0.3495, allocations: 2.026 MB / 380.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004606/0.3541, allocations: 3.536 MB / 384.4 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.3647, allocations: 10.69 MB / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3648, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3648, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002961/0.3651, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.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.01769/0.3828, allocations: 6.918 MB / 402 MB, free: 6.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3828, allocations: 8.031 kB / 402 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004671/0.3875, allocations: 1.067 MB / 403.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00609/0.3936, allocations: 3.473 MB / 406.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003556/0.394, allocations: 419 kB / 407 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/0.3952, allocations: 0.531 MB / 407.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/0.4103, allocations: 7.056 MB / 414.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000215/0.4105, allocations: 11.91 kB / 414.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00107/0.4116, allocations: 223.9 kB / 414.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003182/0.4119, allocations: 258.6 kB / 415 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/0.4246, allocations: 5.937 MB / 421 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04138/0.466, allocations: 22.43 MB / 443.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008908/0.4749, allocations: 8.292 MB / 451.7 MB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00363/0.4786, allocations: 2.183 MB / 453.9 MB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1954/0.674, allocations: 6.179 MB / 460 MB, free: 106.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.6741, allocations: 56.94 kB / 460.1 MB, free: 106.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 5.16e-06/0.6741, allocations: 0 / 460.1 MB, free: 106.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.0219/0.696, allocations: 11.15 MB / 471.2 MB, free: 101.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.6961, allocations: 79.97 kB / 471.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005451/0.7016, allocations: 3.152 MB / 474.5 MB, free: 100.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002844/0.7019, allocations: 65.3 kB / 474.5 MB, free: 100.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.7033, allocations: 2.502 MB / 477 MB, free: 98.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006718/0.704, allocations: 0.8266 MB / 477.9 MB, free: 97.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009827/0.705, allocations: 0.5579 MB / 478.4 MB, free: 97.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.273e-05/0.7051, allocations: 305.1 kB / 478.7 MB, free: 96.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.7072, allocations: 1.333 MB / 480.1 MB, free: 96.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002266/0.7094, allocations: 2.346 MB / 482.4 MB, free: 93.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004194/0.7136, allocations: 3.916 MB / 486.3 MB, free: 89.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.188e-05/0.7137, allocations: 8 kB / 486.3 MB, free: 89.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006621/0.7203, allocations: 4.708 MB / 491 MB, free: 84.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.7204, allocations: 20 kB / 491.1 MB, free: 84.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.523e-05/0.7204, allocations: 36.91 kB / 491.1 MB, free: 84.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.7215, allocations: 0.525 MB / 491.6 MB, free: 83.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/0.7239, allocations: 0.7487 MB / 492.4 MB, free: 82.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006445/0.7304, allocations: 10.29 MB / 0.4909 GB, free: 71.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003021/0.7334, allocations: 187.7 kB / 0.491 GB, free: 71.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002776/0.7337, allocations: 144 kB / 0.4912 GB, free: 71.55 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 (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.002742/0.7364, allocations: 1.57 MB / 0.4927 GB, free: 69.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007717/0.7372, allocations: 343.8 kB / 0.493 GB, free: 69.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006111/0.7433, allocations: 4.052 MB / 0.497 GB, free: 65.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.7434, allocations: 27.94 kB / 0.497 GB, free: 65.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.677e-05/0.7434, allocations: 15.98 kB / 0.497 GB, free: 65.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.7434, allocations: 15.91 kB / 0.4971 GB, free: 65.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.756, allocations: 8.966 MB / 0.5058 GB, free: 56.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.7561, allocations: 8 kB / 0.5058 GB, free: 56.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/0.7576, allocations: 407.4 kB / 0.5062 GB, free: 55.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.7593, allocations: 0.7375 MB / 0.5069 GB, free: 55.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.7594, allocations: 67.97 kB / 0.507 GB, free: 55.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/0.7706, allocations: 16.74 MB / 0.5233 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.7707, allocations: 7.938 kB / 0.5234 GB, free: 37.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007875/0.7786, allocations: 5.837 MB / 0.5291 GB, free: 31.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/0.7804, allocations: 0.6959 MB / 0.5297 GB, free: 30.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/0.7815, allocations: 56 kB / 0.5298 GB, free: 30.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/0.7836, allocations: 136 kB / 0.5299 GB, free: 30.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004083/0.7841, allocations: 185.6 kB / 0.5301 GB, free: 30.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.7842, allocations: 79.91 kB / 0.5302 GB, free: 30.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002846/0.787, allocations: 2.13 MB / 0.5323 GB, free: 27.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7871, allocations: 0 / 0.5323 GB, free: 27.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003738/0.7908, allocations: 0.9902 MB / 0.5332 GB, free: 26.95 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 (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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005552/0.7914, allocations: 254.7 kB / 0.5335 GB, free: 26.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009831/0.8012, allocations: 5.717 MB / 0.539 GB, free: 20.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.8013, allocations: 4.125 kB / 0.539 GB, free: 20.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00346/0.8047, allocations: 2.749 MB / 0.5417 GB, free: 18.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005713/0.8105, allocations: 0.9525 MB / 0.5427 GB, free: 17.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.8288, allocations: 10.05 MB / 0.5525 GB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004266/0.8332, allocations: 3.411 MB / 0.5558 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003313/0.8365, allocations: 0.8112 MB / 0.5566 GB, free: 2.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000907/0.8374, allocations: 239.4 kB / 0.5568 GB, free: 2.465 MB / 382.1 MB Notification: Performance of SimCode: time 1.563e-06/0.8374, allocations: 0 / 0.5568 GB, free: 2.465 MB / 382.1 MB Notification: Performance of Templates: time 0.2671/1.105, allocations: 51.37 MB / 0.607 GB, free: 141 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)