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.001523/0.001523, allocations: 109.9 kB / 16.92 MB, free: 5.773 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.001695/0.001695, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.38/1.38, allocations: 205.1 MB / 223.7 MB, free: 12.37 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.002312/0.002312, allocations: 51.92 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1231, allocations: 46.63 MB / 326.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02451/0.1477, allocations: 21.69 MB / 348.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.1614, allocations: 6.414 MB / 354.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004511/0.1659, allocations: 127.4 kB / 354.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006613/0.1726, allocations: 1.475 MB / 356.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00996/0.1826, allocations: 2.058 MB / 358.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004621/0.1872, allocations: 1.31 MB / 359.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01202/0.1993, allocations: 6.497 MB / 366.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01304/0.2124, allocations: 5.499 MB / 371.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007336/0.2198, allocations: 2.967 MB / 374.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00567/0.2255, allocations: 3.557 MB / 378.2 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1989/0.4244, allocations: 0.8155 MB / 379 MB, free: 21.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.429, allocations: 1.112 MB / 380.1 MB, free: 21.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002325/0.4314, allocations: 2.019 MB / 382.2 MB, free: 21.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006846/0.4382, allocations: 3.537 MB / 385.7 MB, free: 20.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4522, allocations: 10.69 MB / 396.4 MB, free: 19.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.4522, allocations: 0 / 396.4 MB, free: 19.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4522, allocations: 0 / 396.4 MB, free: 19.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003895/0.4526, allocations: 3.375 kB / 396.4 MB, free: 19.48 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.0214/0.474, allocations: 6.914 MB / 403.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.4741, allocations: 7.531 kB / 403.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005158/0.4793, allocations: 1.069 MB / 404.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006366/0.4856, allocations: 3.479 MB / 407.9 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002686/0.4859, allocations: 417.5 kB / 408.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000951/0.4869, allocations: 0.5234 MB / 408.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.4989, allocations: 7.054 MB / 415.8 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.4991, allocations: 12.5 kB / 415.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005141/0.4996, allocations: 223.7 kB / 416.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001901/0.4998, allocations: 257 kB / 416.3 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.5102, allocations: 5.94 MB / 422.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03888/0.5491, allocations: 22.44 MB / 444.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008109/0.5572, allocations: 8.275 MB / 453 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003379/0.5606, allocations: 2.181 MB / 455.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.5717, allocations: 6.183 MB / 461.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.5718, allocations: 60.56 kB / 461.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 4.469e-06/0.5718, allocations: 4 kB / 461.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.02448/0.5963, allocations: 11.16 MB / 472.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.5964, allocations: 81.39 kB / 472.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006888/0.6033, allocations: 3.152 MB / 475.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003484/0.6036, allocations: 65.7 kB / 475.9 MB, free: 12.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002066/0.6057, allocations: 2.497 MB / 478.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/0.6067, allocations: 0.829 MB / 479.2 MB, free: 9.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/0.6079, allocations: 0.5536 MB / 479.7 MB, free: 8.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.608, allocations: 309.1 kB / 480 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.6104, allocations: 1.334 MB / 481.4 MB, free: 7.023 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002952/0.6133, allocations: 2.337 MB / 483.7 MB, free: 4.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005442/0.6188, allocations: 3.923 MB / 487.6 MB, free: 15.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.22e-05/0.6188, allocations: 8 kB / 487.6 MB, free: 15.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009029/0.6279, allocations: 4.709 MB / 492.4 MB, free: 11.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.6279, allocations: 16.66 kB / 492.4 MB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.46e-05/0.628, allocations: 36 kB / 492.4 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.6293, allocations: 0.5301 MB / 492.9 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.6321, allocations: 0.7387 MB / 493.7 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009914/0.642, allocations: 10.29 MB / 0.4922 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003603/0.6456, allocations: 187.7 kB / 0.4923 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004417/0.6461, allocations: 140 kB / 0.4925 GB, free: 14.84 MB / 414.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.003547/0.6496, allocations: 1.577 MB / 0.494 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/0.6508, allocations: 343.8 kB / 0.4943 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007286/0.6581, allocations: 4.046 MB / 0.4983 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.6581, allocations: 27.94 kB / 0.4983 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.719e-05/0.6582, allocations: 8 kB / 0.4983 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.379e-05/0.6582, allocations: 15.95 kB / 0.4983 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/0.6746, allocations: 8.977 MB / 0.5071 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.6747, allocations: 4 kB / 0.5071 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/0.6764, allocations: 406 kB / 0.5075 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/0.6784, allocations: 0.7443 MB / 0.5082 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002122/0.6786, allocations: 70.59 kB / 0.5083 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/0.6936, allocations: 16.75 MB / 0.5246 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.6936, allocations: 6.906 kB / 0.5247 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/0.7037, allocations: 5.833 MB / 0.5304 GB, free: 6.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002187/0.7059, allocations: 0.7039 MB / 0.531 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/0.707, allocations: 63.92 kB / 0.5311 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002633/0.7097, allocations: 134.5 kB / 0.5312 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005737/0.7103, allocations: 180.5 kB / 0.5314 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002117/0.7105, allocations: 74.89 kB / 0.5315 GB, free: 5.598 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004993/0.7155, allocations: 2.123 MB / 0.5335 GB, free: 3.484 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7155, allocations: 0 / 0.5335 GB, free: 3.484 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00451/0.72, allocations: 1.004 MB / 0.5345 GB, free: 2.48 MB / 446.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.0006838/0.7207, allocations: 246.7 kB / 0.5348 GB, free: 2.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2043/0.925, allocations: 5.713 MB / 0.5403 GB, free: 159.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.925, allocations: 1.594 kB / 0.5403 GB, free: 159.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005027/0.9301, allocations: 2.751 MB / 0.543 GB, free: 158.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006196/0.9364, allocations: 0.9462 MB / 0.544 GB, free: 158.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01989/0.9563, allocations: 10.05 MB / 0.5538 GB, free: 155 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003266/0.9596, allocations: 3.409 MB / 0.5571 GB, free: 153.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003289/0.9629, allocations: 0.807 MB / 0.5579 GB, free: 153.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007059/0.9636, allocations: 248.8 kB / 0.5581 GB, free: 153.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.273e-06/0.9636, allocations: 0 / 0.5581 GB, free: 153.6 MB / 446.1 MB Notification: Performance of Templates: time 0.08217/1.046, allocations: 51.36 MB / 0.6083 GB, free: 106.8 MB / 446.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)