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.008978/0.008978, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001892/0.001892, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.571/1.571, allocations: 205.1 MB / 222.6 MB, free: 4.527 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.001213/0.001213, allocations: 49.75 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1168, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02569/0.1426, allocations: 24.95 MB / 398.2 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01913/0.1617, allocations: 7.728 MB / 405.9 MB, free: 488 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00713/0.1689, allocations: 147.6 kB / 406.1 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02152/0.1905, allocations: 8.362 MB / 414.4 MB, free: 7.934 MB / 350.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.01254/0.2031, allocations: 3.05 MB / 417.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006903/0.21, allocations: 1.797 MB / 419.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01901/0.229, allocations: 11.2 MB / 430.5 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03975/0.2688, allocations: 23.35 MB / 453.8 MB, free: 308 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2796/0.5485, allocations: 5.959 MB / 459.8 MB, free: 24.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01417/0.5627, allocations: 6.541 MB / 466.3 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007335/0.5701, allocations: 1.725 MB / 468 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01029/0.5804, allocations: 2.119 MB / 470.2 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008118/0.5886, allocations: 3.453 MB / 473.6 MB, free: 22.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01541/0.604, allocations: 6.434 MB / 480 MB, free: 19.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02922/0.6333, allocations: 23.14 MB / 0.4914 GB, free: 5.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.964e-06/0.6333, allocations: 0 / 0.4914 GB, free: 5.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.6333, allocations: 0 / 0.4914 GB, free: 5.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007507/0.6341, allocations: 0 / 0.4914 GB, free: 5.914 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.04386/0.678, allocations: 13.55 MB / 0.5046 GB, free: 10.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.678, allocations: 8.031 kB / 0.5046 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04076/0.7188, allocations: 7.253 MB / 0.5117 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01539/0.7342, allocations: 6.494 MB / 0.5181 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007385/0.735, allocations: 0.7363 MB / 0.5188 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004714/0.7397, allocations: 0.9644 MB / 0.5197 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04479/0.7845, allocations: 16.59 MB / 0.5359 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002948/0.7849, allocations: 15.66 kB / 0.5359 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003598/0.7885, allocations: 408.8 kB / 0.5363 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006081/0.7891, allocations: 0.5914 MB / 0.5369 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03545/0.8246, allocations: 15.8 MB / 0.5523 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.109/0.9336, allocations: 53.27 MB / 0.6043 GB, free: 4.914 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02508/0.9588, allocations: 22.73 MB / 0.6265 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00821/0.967, allocations: 3.8 MB / 0.6303 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.312/1.279, allocations: 11.68 MB / 0.6417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.513e-05/1.279, allocations: 69.23 kB / 0.6417 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=357): time 7.273e-06/1.279, allocations: 0.6875 kB / 0.6417 GB, free: 174.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362): time 0.04558/1.325, allocations: 17.52 MB / 0.6588 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/1.325, allocations: 90.73 kB / 0.6589 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007446/1.332, allocations: 4.763 MB / 0.6636 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008891/1.333, allocations: 81.48 kB / 0.6636 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002609/1.336, allocations: 4.478 MB / 0.668 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001685/1.338, allocations: 1.253 MB / 0.6692 GB, free: 163.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001853/1.339, allocations: 1.182 MB / 0.6704 GB, free: 162.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.515e-05/1.34, allocations: 307.4 kB / 0.6707 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004362/1.344, allocations: 2.904 MB / 0.6735 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005151/1.349, allocations: 5.265 MB / 0.6787 GB, free: 157 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009784/1.359, allocations: 8.632 MB / 0.6871 GB, free: 151 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.084e-05/1.359, allocations: 23.53 kB / 0.6871 GB, free: 151 MB / 0.5137 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01664/1.376, allocations: 9.618 MB / 0.6965 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.727e-05/1.376, allocations: 41.69 kB / 0.6965 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001254/1.376, allocations: 76.28 kB / 0.6966 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003567/1.379, allocations: 1.439 MB / 0.698 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005165/1.385, allocations: 1.334 MB / 0.6993 GB, free: 145 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/1.4, allocations: 12.67 MB / 0.7117 GB, free: 132.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006204/1.406, allocations: 371.4 kB / 0.7121 GB, free: 132.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.407, allocations: 300 kB / 0.7123 GB, free: 132.1 MB / 0.5137 GB 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.007308/1.415, allocations: 3.92 MB / 0.7162 GB, free: 128.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.416, allocations: 454.4 kB / 0.7166 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/1.427, allocations: 6.757 MB / 0.7232 GB, free: 121 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007828/1.435, allocations: 5.584 MB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/1.435, allocations: 15.47 kB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.299e-05/1.435, allocations: 19.92 kB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0247/1.46, allocations: 15.44 MB / 0.7438 GB, free: 99.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/1.46, allocations: 8 kB / 0.7438 GB, free: 99.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002606/1.463, allocations: 0.6675 MB / 0.7444 GB, free: 99.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003218/1.466, allocations: 1.304 MB / 0.7457 GB, free: 97.81 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003543/1.466, allocations: 87.97 kB / 0.7458 GB, free: 97.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/1.479, allocations: 11.54 MB / 0.7571 GB, free: 85.92 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.479, allocations: 7.938 kB / 0.7571 GB, free: 85.91 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/1.494, allocations: 10.01 MB / 0.7668 GB, free: 75.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003102/1.497, allocations: 1.018 MB / 0.7678 GB, free: 74.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008481/1.498, allocations: 75.94 kB / 0.7679 GB, free: 74.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002292/1.5, allocations: 219.8 kB / 0.7681 GB, free: 74.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006246/1.501, allocations: 271.1 kB / 0.7684 GB, free: 74.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002221/1.501, allocations: 112 kB / 0.7685 GB, free: 74.06 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004425/1.505, allocations: 3.233 MB / 0.7716 GB, free: 70.82 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.61e-07/1.505, allocations: 0 / 0.7716 GB, free: 70.82 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007293/1.513, allocations: 1.696 MB / 0.7733 GB, free: 69.13 MB / 0.5137 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.001498/1.514, allocations: 0.5157 MB / 0.7738 GB, free: 68.65 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01151/1.526, allocations: 7.524 MB / 0.7811 GB, free: 61.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.526, allocations: 4 kB / 0.7811 GB, free: 61.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006189/1.532, allocations: 3.597 MB / 0.7847 GB, free: 57.49 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006131/1.538, allocations: 1.051 MB / 0.7857 GB, free: 56.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03106/1.569, allocations: 17.77 MB / 0.803 GB, free: 38.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008075/1.577, allocations: 6.551 MB / 0.8094 GB, free: 32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005435/1.583, allocations: 2.098 MB / 0.8115 GB, free: 29.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/1.584, allocations: 351.4 kB / 0.8118 GB, free: 29.55 MB / 0.5137 GB Notification: Performance of SimCode: time 1.473e-06/1.584, allocations: 0 / 0.8118 GB, free: 29.55 MB / 0.5137 GB Notification: Performance of Templates: time 0.3963/1.98, allocations: 68.29 MB / 0.8785 GB, free: 139.8 MB / 0.5137 GB 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)