Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 111 kB / 17.06 MB, free: 5.957 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.001315/0.001315, allocations: 198.9 kB / 18.01 MB, free: 5.047 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.537/1.537, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001206/0.001206, allocations: 51.94 kB / 327.9 MB, free: 3.227 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1173, allocations: 46.62 MB / 374.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2569/0.3743, allocations: 24.96 MB / 399.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.3942, allocations: 7.713 MB / 407.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008138/0.4024, allocations: 150.9 kB / 407.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02067/0.4231, allocations: 8.373 MB / 415.7 MB, free: 2.395 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01371/0.4368, allocations: 3.04 MB / 418.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00728/0.4441, allocations: 1.795 MB / 420.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01967/0.4638, allocations: 11.21 MB / 431.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03799/0.5019, allocations: 23.35 MB / 455.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01153/0.5134, allocations: 5.989 MB / 461.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01452/0.528, allocations: 6.53 MB / 467.6 MB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00652/0.5346, allocations: 1.73 MB / 469.4 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009505/0.5441, allocations: 2.125 MB / 471.5 MB, free: 14.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006569/0.5507, allocations: 3.457 MB / 475 MB, free: 10.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01457/0.5653, allocations: 6.432 MB / 481.4 MB, free: 4.477 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03533/0.6007, allocations: 23.15 MB / 0.4927 GB, free: 13.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.818e-06/0.6007, allocations: 0 / 0.4927 GB, free: 13.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6007, allocations: 0 / 0.4927 GB, free: 13.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007479/0.6015, allocations: 0 / 0.4927 GB, free: 13.27 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.0479/0.6494, allocations: 13.55 MB / 0.5059 GB, free: 15.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.6495, allocations: 15.97 kB / 0.506 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04081/0.6903, allocations: 7.252 MB / 0.513 GB, free: 8.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01867/0.709, allocations: 6.484 MB / 0.5194 GB, free: 1.758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008756/0.7099, allocations: 0.7345 MB / 0.5201 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004972/0.7149, allocations: 0.9608 MB / 0.521 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04645/0.7614, allocations: 16.59 MB / 0.5372 GB, free: 15.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003988/0.7618, allocations: 19.84 kB / 0.5372 GB, free: 15.37 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004138/0.766, allocations: 407.9 kB / 0.5376 GB, free: 14.97 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006721/0.7667, allocations: 0.5947 MB / 0.5382 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4293/1.196, allocations: 15.79 MB / 0.5536 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1112/1.307, allocations: 53.26 MB / 0.6056 GB, free: 100.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/1.327, allocations: 22.73 MB / 0.6278 GB, free: 79.45 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006802/1.334, allocations: 3.802 MB / 0.6316 GB, free: 77.46 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02473/1.359, allocations: 11.68 MB / 0.643 GB, free: 66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/1.359, allocations: 73.3 kB / 0.643 GB, free: 65.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=357): time 5.841e-06/1.359, allocations: 0 / 0.643 GB, free: 65.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=362): time 0.04645/1.405, allocations: 17.51 MB / 0.6601 GB, free: 48.29 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/1.406, allocations: 86.25 kB / 0.6602 GB, free: 48.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009898/1.415, allocations: 4.765 MB / 0.6649 GB, free: 43.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000899/1.416, allocations: 85.7 kB / 0.665 GB, free: 43.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002686/1.419, allocations: 4.475 MB / 0.6693 GB, free: 38.81 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.421, allocations: 1.255 MB / 0.6705 GB, free: 37.57 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004086/1.425, allocations: 1.191 MB / 0.6717 GB, free: 36.36 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.762e-05/1.425, allocations: 301.1 kB / 0.672 GB, free: 36.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.43, allocations: 2.901 MB / 0.6748 GB, free: 33.16 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005862/1.436, allocations: 5.262 MB / 0.68 GB, free: 26.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/1.446, allocations: 8.64 MB / 0.6884 GB, free: 17.04 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-05/1.447, allocations: 24 kB / 0.6884 GB, free: 17.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01944/1.466, allocations: 9.615 MB / 0.6978 GB, free: 7.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.744e-05/1.466, allocations: 40 kB / 0.6979 GB, free: 7.328 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/1.466, allocations: 76 kB / 0.6979 GB, free: 7.254 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003888/1.47, allocations: 1.438 MB / 0.6993 GB, free: 5.812 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005515/1.476, allocations: 1.326 MB / 0.7006 GB, free: 4.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01956/1.495, allocations: 12.69 MB / 0.713 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.501, allocations: 363.4 kB / 0.7134 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.503, allocations: 304 kB / 0.7137 GB, free: 6.875 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (689): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01014/1.513, allocations: 3.92 MB / 0.7175 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001909/1.515, allocations: 450.4 kB / 0.7179 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.532, allocations: 6.761 MB / 0.7245 GB, free: 11.68 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01305/1.545, allocations: 5.588 MB / 0.73 GB, free: 6.062 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-05/1.546, allocations: 12 kB / 0.73 GB, free: 6.051 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.72e-05/1.546, allocations: 15.94 kB / 0.73 GB, free: 6.035 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0431/1.589, allocations: 15.45 MB / 0.7451 GB, free: 6.477 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.006e-05/1.589, allocations: 4 kB / 0.7451 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003749/1.593, allocations: 0.6669 MB / 0.7457 GB, free: 5.805 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00409/1.597, allocations: 1.294 MB / 0.747 GB, free: 4.508 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/1.598, allocations: 91.97 kB / 0.7471 GB, free: 4.418 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3185/1.916, allocations: 11.54 MB / 0.7584 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.916, allocations: 8.812 kB / 0.7584 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01881/1.935, allocations: 10 MB / 0.7681 GB, free: 163.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003549/1.939, allocations: 1.02 MB / 0.7691 GB, free: 163.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007808/1.939, allocations: 69.52 kB / 0.7692 GB, free: 163.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.942, allocations: 220.1 kB / 0.7694 GB, free: 163.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008767/1.943, allocations: 276.1 kB / 0.7697 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/1.943, allocations: 114.7 kB / 0.7698 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006074/1.949, allocations: 3.233 MB / 0.7729 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.8e-07/1.949, allocations: 0 / 0.7729 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007903/1.957, allocations: 1.697 MB / 0.7746 GB, free: 161.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (333): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001588/1.959, allocations: 0.5035 MB / 0.7751 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01539/1.974, allocations: 7.543 MB / 0.7825 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/1.974, allocations: 0 / 0.7825 GB, free: 158.4 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007369/1.981, allocations: 3.602 MB / 0.786 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006318/1.988, allocations: 1.037 MB / 0.787 GB, free: 156.5 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03424/2.022, allocations: 17.77 MB / 0.8043 GB, free: 144.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01109/2.033, allocations: 6.56 MB / 0.8107 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007077/2.04, allocations: 2.098 MB / 0.8128 GB, free: 137.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001919/2.042, allocations: 353.6 kB / 0.8131 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of SimCode: time 9.12e-07/2.042, allocations: 0 / 0.8131 GB, free: 137.5 MB / 0.5138 GB Notification: Performance of Templates: time 0.1127/2.155, allocations: 68.52 MB / 0.88 GB, free: 70.5 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)