Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001588/0.001588, allocations: 108.4 kB / 17.06 MB, free: 5.973 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.001261/0.001261, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.356/1.356, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001102/0.001102, allocations: 51.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08955, allocations: 46.62 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1921/0.2817, allocations: 21.67 MB / 396.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.2964, allocations: 6.435 MB / 402.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004931/0.3014, allocations: 124.8 kB / 402.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005338/0.3068, allocations: 1.475 MB / 404.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009437/0.3162, allocations: 2.043 MB / 406.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004376/0.3206, allocations: 1.313 MB / 407.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.3309, allocations: 6.525 MB / 414.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009384/0.3404, allocations: 5.51 MB / 419.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005686/0.3461, allocations: 2.98 MB / 422.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006543/0.3526, allocations: 3.569 MB / 426.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.3545, allocations: 0.8164 MB / 427 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.3578, allocations: 1.101 MB / 428.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001906/0.3597, allocations: 2.022 MB / 430.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005185/0.3649, allocations: 3.535 MB / 433.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.3775, allocations: 10.82 MB / 444.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3775, allocations: 0 / 444.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3776, allocations: 4 kB / 444.4 MB, free: 9.465 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002796/0.3778, allocations: 0 / 444.4 MB, free: 9.465 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.01669/0.3945, allocations: 7.075 MB / 451.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3946, allocations: 11.97 kB / 451.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005003/0.3996, allocations: 1.094 MB / 452.6 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007496/0.4071, allocations: 3.539 MB / 456.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004048/0.4076, allocations: 414 kB / 456.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001732/0.4093, allocations: 0.5233 MB / 457.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.4237, allocations: 7.048 MB / 464.1 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/0.4239, allocations: 15.89 kB / 464.2 MB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005284/0.4244, allocations: 220 kB / 464.4 MB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/0.4247, allocations: 262.6 kB / 464.6 MB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.4373, allocations: 5.933 MB / 470.6 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04052/0.4778, allocations: 22.22 MB / 492.8 MB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008734/0.4866, allocations: 8.288 MB / 0.4893 GB, free: 15.13 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003647/0.4903, allocations: 2.159 MB / 0.4914 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.5023, allocations: 6.178 MB / 0.4975 GB, free: 6.652 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.634e-05/0.5024, allocations: 64.56 kB / 0.4975 GB, free: 6.578 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.689e-06/0.5024, allocations: 0 / 0.4975 GB, free: 6.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02392/0.5263, allocations: 11.23 MB / 0.5085 GB, free: 11.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.5264, allocations: 77.41 kB / 0.5086 GB, free: 11.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005391/0.5318, allocations: 3.156 MB / 0.5117 GB, free: 7.852 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002675/0.5321, allocations: 65.7 kB / 0.5117 GB, free: 7.781 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.5339, allocations: 2.568 MB / 0.5142 GB, free: 5.191 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007887/0.5347, allocations: 0.8676 MB / 0.5151 GB, free: 4.316 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009816/0.5357, allocations: 0.5656 MB / 0.5156 GB, free: 3.742 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.35e-05/0.5358, allocations: 301.1 kB / 0.5159 GB, free: 3.445 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002286/0.5381, allocations: 1.334 MB / 0.5172 GB, free: 2.109 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/0.5411, allocations: 2.342 MB / 0.5195 GB, free: 15.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005574/0.5467, allocations: 3.924 MB / 0.5233 GB, free: 10.92 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.347e-05/0.5467, allocations: 8 kB / 0.5233 GB, free: 10.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008292/0.555, allocations: 4.711 MB / 0.5279 GB, free: 6.094 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.5551, allocations: 31.34 kB / 0.528 GB, free: 6.066 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-05/0.5552, allocations: 36 kB / 0.528 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.5564, allocations: 0.5218 MB / 0.5285 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/0.5592, allocations: 0.7449 MB / 0.5292 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.5694, allocations: 10.29 MB / 0.5393 GB, free: 9.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/0.5729, allocations: 187.8 kB / 0.5395 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006384/0.5736, allocations: 144 kB / 0.5396 GB, free: 9.426 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.004043/0.5776, allocations: 1.567 MB / 0.5411 GB, free: 7.848 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001537/0.5792, allocations: 365.7 kB / 0.5415 GB, free: 7.488 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008327/0.5875, allocations: 4.049 MB / 0.5455 GB, free: 3.34 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.5876, allocations: 24 kB / 0.5455 GB, free: 3.316 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.852e-05/0.5876, allocations: 8 kB / 0.5455 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/0.5876, allocations: 11.95 kB / 0.5455 GB, free: 3.297 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2305/0.8182, allocations: 8.957 MB / 0.5542 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.8182, allocations: 5.312 kB / 0.5542 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/0.82, allocations: 410.7 kB / 0.5546 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/0.8223, allocations: 0.731 MB / 0.5554 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/0.8225, allocations: 65.61 kB / 0.5554 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01369/0.8362, allocations: 16.74 MB / 0.5718 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.8363, allocations: 12.56 kB / 0.5718 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.8465, allocations: 5.853 MB / 0.5775 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/0.8484, allocations: 0.7132 MB / 0.5782 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005705/0.849, allocations: 62.48 kB / 0.5782 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/0.8507, allocations: 139.2 kB / 0.5784 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000504/0.8512, allocations: 181.2 kB / 0.5786 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.8513, allocations: 73.05 kB / 0.5786 GB, free: 127.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003587/0.8549, allocations: 2.122 MB / 0.5807 GB, free: 127 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8549, allocations: 0 / 0.5807 GB, free: 127 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004131/0.8591, allocations: 0.9962 MB / 0.5817 GB, free: 126.9 MB / 478.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.0006053/0.8597, allocations: 253 kB / 0.5819 GB, free: 126.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005969/0.8657, allocations: 4.155 MB / 0.586 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.8657, allocations: 0 / 0.586 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/0.8696, allocations: 2.747 MB / 0.5887 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004273/0.8739, allocations: 0.9628 MB / 0.5896 GB, free: 122.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.888, allocations: 10.09 MB / 0.5994 GB, free: 116.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002446/0.8905, allocations: 3.408 MB / 0.6028 GB, free: 113.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002313/0.8928, allocations: 0.8121 MB / 0.6036 GB, free: 113.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005958/0.8935, allocations: 245.8 kB / 0.6038 GB, free: 113.1 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8935, allocations: 0 / 0.6038 GB, free: 113.1 MB / 478.1 MB Notification: Performance of Templates: time 0.06651/0.96, allocations: 49.12 MB / 0.6518 GB, free: 64.16 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)