Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001189/0.00119, 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.001478/0.001478, allocations: 193.8 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.516/1.516, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.00175/0.00175, allocations: 51.92 kB / 278.7 MB, free: 12.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2716, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0257/0.2973, allocations: 24.96 MB / 350.3 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02011/0.3175, allocations: 7.718 MB / 358 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007359/0.3249, allocations: 151.6 kB / 358.2 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02123/0.3462, allocations: 8.358 MB / 366.5 MB, free: 10.59 MB / 302.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.01296/0.3592, allocations: 3.043 MB / 369.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007138/0.3663, allocations: 1.79 MB / 371.4 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01802/0.3844, allocations: 11.13 MB / 382.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04501/0.4294, allocations: 23.54 MB / 406 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01213/0.4416, allocations: 5.958 MB / 412 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01264/0.4543, allocations: 6.631 MB / 418.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00608/0.4604, allocations: 1.723 MB / 420.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009975/0.4704, allocations: 2.128 MB / 422.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007876/0.4783, allocations: 3.414 MB / 425.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01558/0.4939, allocations: 6.44 MB / 432.3 MB, free: 8.488 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03288/0.5268, allocations: 23.03 MB / 455.3 MB, free: 1.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.5269, allocations: 4 kB / 455.3 MB, free: 1.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5269, allocations: 0 / 455.3 MB, free: 1.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007874/0.5277, allocations: 0 / 455.3 MB, free: 1.395 MB / 382.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.2737/0.8014, allocations: 13.61 MB / 469 MB, free: 97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.8015, allocations: 11.84 kB / 469 MB, free: 97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0399/0.8414, allocations: 7.198 MB / 476.2 MB, free: 91.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01488/0.8563, allocations: 6.486 MB / 482.6 MB, free: 85.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000643/0.857, allocations: 0.7334 MB / 483.4 MB, free: 84.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004897/0.8619, allocations: 0.9642 MB / 484.3 MB, free: 83.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04613/0.908, allocations: 16.6 MB / 0.4892 GB, free: 67.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003225/0.9084, allocations: 11.91 kB / 0.4892 GB, free: 67.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003455/0.9119, allocations: 411.5 kB / 0.4896 GB, free: 66.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004864/0.9123, allocations: 0.5909 MB / 0.4902 GB, free: 66.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03135/0.9437, allocations: 15.78 MB / 0.5056 GB, free: 50.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0913/1.035, allocations: 53.9 MB / 0.5582 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02476/1.06, allocations: 22.73 MB / 0.5804 GB, free: 2.434 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007177/1.067, allocations: 3.793 MB / 0.5841 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.091, allocations: 11.7 MB / 0.5956 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/1.091, allocations: 77.36 kB / 0.5956 GB, free: 2.605 MB / 430.1 MB Notification: Performance of pre-optimization done (n=357): time 5.1e-06/1.091, allocations: 0 / 0.5956 GB, free: 2.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=362): time 0.04745/1.138, allocations: 17.51 MB / 0.6127 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/1.138, allocations: 90.25 kB / 0.6128 GB, free: 0.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.403/1.541, allocations: 4.755 MB / 0.6175 GB, free: 147.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008414/1.542, allocations: 87.7 kB / 0.6175 GB, free: 147.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002537/1.545, allocations: 4.478 MB / 0.6219 GB, free: 145.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001431/1.546, allocations: 1.252 MB / 0.6231 GB, free: 144.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001802/1.548, allocations: 1.188 MB / 0.6243 GB, free: 143.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.623e-05/1.548, allocations: 301.1 kB / 0.6246 GB, free: 143.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003742/1.552, allocations: 2.899 MB / 0.6274 GB, free: 142.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004966/1.557, allocations: 5.266 MB / 0.6326 GB, free: 138 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009434/1.566, allocations: 8.638 MB / 0.641 GB, free: 132 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.202e-05/1.566, allocations: 23.53 kB / 0.641 GB, free: 132 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01617/1.583, allocations: 9.616 MB / 0.6504 GB, free: 127.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/1.583, allocations: 40.19 kB / 0.6504 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.583, allocations: 81.08 kB / 0.6505 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003695/1.587, allocations: 1.436 MB / 0.6519 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/1.592, allocations: 1.336 MB / 0.6532 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/1.608, allocations: 12.7 MB / 0.6656 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005975/1.614, allocations: 370.9 kB / 0.666 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001485/1.616, allocations: 298.7 kB / 0.6663 GB, free: 112.6 MB / 446.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.007955/1.624, allocations: 3.925 MB / 0.6701 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001875/1.626, allocations: 450.5 kB / 0.6705 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/1.639, allocations: 6.762 MB / 0.6771 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008666/1.648, allocations: 5.588 MB / 0.6826 GB, free: 96.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.188e-05/1.648, allocations: 12 kB / 0.6826 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.859e-05/1.648, allocations: 15.94 kB / 0.6826 GB, free: 95.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03557/1.683, allocations: 15.45 MB / 0.6977 GB, free: 80.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.677e-05/1.684, allocations: 4 kB / 0.6977 GB, free: 80.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/1.687, allocations: 0.667 MB / 0.6984 GB, free: 79.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003606/1.69, allocations: 1.312 MB / 0.6996 GB, free: 78.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000687/1.691, allocations: 87.97 kB / 0.6997 GB, free: 78.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01453/1.705, allocations: 11.57 MB / 0.711 GB, free: 66.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/1.706, allocations: 11.88 kB / 0.711 GB, free: 66.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01856/1.724, allocations: 9.998 MB / 0.7208 GB, free: 56.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002784/1.727, allocations: 1.019 MB / 0.7218 GB, free: 55.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.728, allocations: 76.86 kB / 0.7219 GB, free: 55.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003213/1.732, allocations: 215.8 kB / 0.7221 GB, free: 55.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008501/1.732, allocations: 275 kB / 0.7223 GB, free: 54.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000398/1.733, allocations: 112 kB / 0.7224 GB, free: 54.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005939/1.739, allocations: 3.237 MB / 0.7256 GB, free: 51.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.739, allocations: 0 / 0.7256 GB, free: 51.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008739/1.748, allocations: 1.689 MB / 0.7273 GB, free: 49.78 MB / 446.1 MB 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.002155/1.75, allocations: 0.5126 MB / 0.7278 GB, free: 49.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02601/1.776, allocations: 12.1 MB / 0.7396 GB, free: 37.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/1.776, allocations: 0 / 0.7396 GB, free: 37.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006927/1.783, allocations: 3.606 MB / 0.7431 GB, free: 33.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007355/1.79, allocations: 1.02 MB / 0.7441 GB, free: 32.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0368/1.827, allocations: 17.98 MB / 0.7616 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/1.838, allocations: 6.559 MB / 0.768 GB, free: 7.895 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007598/1.846, allocations: 2.102 MB / 0.7701 GB, free: 5.785 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001965/1.848, allocations: 351.4 kB / 0.7704 GB, free: 5.445 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/1.848, allocations: 4 kB / 0.7704 GB, free: 5.441 MB / 446.1 MB Notification: Performance of Templates: time 0.3441/2.192, allocations: 71.37 MB / 0.8401 GB, free: 105.4 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)