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.001283/0.001283, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001248/0.001248, allocations: 194.5 kB / 16.14 MB, free: 6.66 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.402/1.402, allocations: 205.1 MB / 222 MB, free: 4.746 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.00174/0.00174, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2483, allocations: 46.62 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0235/0.2718, allocations: 21.38 MB / 346.1 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.2857, allocations: 6.368 MB / 352.4 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004764/0.2906, allocations: 119.4 kB / 352.5 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004977/0.2956, allocations: 1.263 MB / 353.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007652/0.3033, allocations: 1.861 MB / 355.7 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003912/0.3072, allocations: 1.194 MB / 356.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009941/0.3172, allocations: 7.088 MB / 364 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008606/0.3258, allocations: 4.607 MB / 368.6 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004493/0.3303, allocations: 2.498 MB / 371.1 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005155/0.3355, allocations: 3.354 MB / 374.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.3374, allocations: 496 kB / 374.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.3405, allocations: 0.7886 MB / 375.7 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.3424, allocations: 1.674 MB / 377.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004979/0.3474, allocations: 3.184 MB / 380.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.3575, allocations: 10.43 MB / 391 MB, free: 1.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3575, allocations: 0 / 391 MB, free: 1.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.3575, allocations: 0 / 391 MB, free: 1.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003153/0.3579, allocations: 3.938 kB / 391 MB, free: 1.562 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.02003/0.3779, allocations: 6.907 MB / 397.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.378, allocations: 8.031 kB / 397.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006018/0.384, allocations: 1.071 MB / 399 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00744/0.3915, allocations: 3.438 MB / 402.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004483/0.392, allocations: 419 kB / 402.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001766/0.3937, allocations: 0.5272 MB / 403.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.4083, allocations: 7.059 MB / 410.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.4085, allocations: 11.91 kB / 410.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005206/0.409, allocations: 216 kB / 410.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002331/0.4093, allocations: 262.6 kB / 410.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.4214, allocations: 5.94 MB / 416.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04133/0.4628, allocations: 22.43 MB / 439.2 MB, free: 492 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008429/0.4712, allocations: 8.292 MB / 447.5 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003495/0.4748, allocations: 2.179 MB / 449.7 MB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1902/0.665, allocations: 6.182 MB / 455.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.6651, allocations: 56.34 kB / 455.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.489e-06/0.6651, allocations: 3.281 kB / 455.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02094/0.686, allocations: 11.14 MB / 467.1 MB, free: 100.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.6861, allocations: 73.06 kB / 467.2 MB, free: 100.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004389/0.6905, allocations: 3.157 MB / 470.3 MB, free: 99.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003657/0.6909, allocations: 65.64 kB / 470.4 MB, free: 99.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.6922, allocations: 2.496 MB / 472.9 MB, free: 97.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005738/0.6928, allocations: 0.8306 MB / 473.7 MB, free: 97.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007423/0.6935, allocations: 0.5588 MB / 474.3 MB, free: 96.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.716e-05/0.6936, allocations: 301.1 kB / 474.6 MB, free: 96.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001861/0.6954, allocations: 1.33 MB / 475.9 MB, free: 96.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002178/0.6976, allocations: 2.342 MB / 478.2 MB, free: 94.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004103/0.7017, allocations: 3.917 MB / 482.1 MB, free: 91.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.168e-05/0.7018, allocations: 12 kB / 482.2 MB, free: 91.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006744/0.7085, allocations: 4.716 MB / 486.9 MB, free: 86.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.56e-05/0.7086, allocations: 20.62 kB / 486.9 MB, free: 86.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.291e-05/0.7087, allocations: 28 kB / 486.9 MB, free: 86.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.7098, allocations: 0.5304 MB / 487.5 MB, free: 85.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.7123, allocations: 0.7454 MB / 488.2 MB, free: 84.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006226/0.7186, allocations: 9.428 MB / 497.6 MB, free: 74.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002959/0.7216, allocations: 187.7 kB / 497.8 MB, free: 74.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004013/0.722, allocations: 144 kB / 497.9 MB, free: 74.56 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.002692/0.7247, allocations: 1.567 MB / 499.5 MB, free: 72.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008283/0.7255, allocations: 345.4 kB / 499.9 MB, free: 72.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005678/0.7312, allocations: 4.057 MB / 0.4921 GB, free: 68.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/0.7313, allocations: 20 kB / 0.4921 GB, free: 68.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.7313, allocations: 13.94 kB / 0.4921 GB, free: 68.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.7313, allocations: 15.95 kB / 0.4921 GB, free: 68.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/0.744, allocations: 8.981 MB / 0.5009 GB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.744, allocations: 8 kB / 0.5009 GB, free: 59.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001631/0.7457, allocations: 411.4 kB / 0.5013 GB, free: 58.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.7474, allocations: 0.7247 MB / 0.502 GB, free: 58.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001986/0.7476, allocations: 71.81 kB / 0.5021 GB, free: 58.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.7581, allocations: 15.32 MB / 0.5171 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.7581, allocations: 12.09 kB / 0.5171 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007791/0.7659, allocations: 5.834 MB / 0.5228 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/0.7679, allocations: 0.692 MB / 0.5234 GB, free: 35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006081/0.7685, allocations: 63.92 kB / 0.5235 GB, free: 34.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.7701, allocations: 139.9 kB / 0.5236 GB, free: 34.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003915/0.7705, allocations: 181.6 kB / 0.5238 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.7706, allocations: 75.97 kB / 0.5239 GB, free: 34.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.7733, allocations: 2.123 MB / 0.526 GB, free: 32.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7733, allocations: 0 / 0.526 GB, free: 32.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003238/0.7765, allocations: 0.9908 MB / 0.5269 GB, free: 31.45 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.0004848/0.777, allocations: 251.6 kB / 0.5272 GB, free: 31.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005234/0.7823, allocations: 4.134 MB / 0.5312 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.7823, allocations: 4 kB / 0.5312 GB, free: 26.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.7857, allocations: 2.752 MB / 0.5339 GB, free: 24.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004191/0.7899, allocations: 0.8971 MB / 0.5348 GB, free: 23.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.805, allocations: 12.31 MB / 0.5468 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002477/0.8075, allocations: 3.407 MB / 0.5501 GB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002723/0.8103, allocations: 0.8034 MB / 0.5509 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006613/0.8109, allocations: 247.3 kB / 0.5511 GB, free: 6.367 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.811, allocations: 0 / 0.5511 GB, free: 6.367 MB / 382.1 MB Notification: Performance of Templates: time 0.08816/0.8991, allocations: 49.39 MB / 0.5994 GB, free: 4.914 MB / 430.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)