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.00917/0.00917, allocations: 104.7 kB / 15.74 MB, free: 6.488 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.002235/0.002235, allocations: 197.5 kB / 16.67 MB, free: 6.375 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.579/1.579, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001404/0.001404, allocations: 53.95 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1072, allocations: 46.63 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0249/0.1322, allocations: 24.96 MB / 398.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.1506, allocations: 7.72 MB / 405.9 MB, free: 456 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005849/0.1565, allocations: 151.6 kB / 406.1 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02007/0.1766, allocations: 8.409 MB / 414.5 MB, free: 7.852 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.01169/0.1884, allocations: 3.097 MB / 417.6 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.1945, allocations: 1.801 MB / 419.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01587/0.2104, allocations: 11.2 MB / 430.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03685/0.2473, allocations: 23.35 MB / 453.9 MB, free: 168 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3103/0.5577, allocations: 5.978 MB / 459.9 MB, free: 24.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0143/0.5721, allocations: 6.539 MB / 466.4 MB, free: 23.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008364/0.5805, allocations: 1.724 MB / 468.2 MB, free: 23.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01076/0.5913, allocations: 2.129 MB / 470.3 MB, free: 23.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009085/0.6004, allocations: 3.447 MB / 473.7 MB, free: 22.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01859/0.619, allocations: 6.435 MB / 480.2 MB, free: 19.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.033/0.6521, allocations: 23.15 MB / 0.4915 GB, free: 5.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.6521, allocations: 2.312 kB / 0.4915 GB, free: 5.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6521, allocations: 3.188 kB / 0.4915 GB, free: 5.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007733/0.6529, allocations: 0 / 0.4915 GB, free: 5.875 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.05176/0.7047, allocations: 13.55 MB / 0.5048 GB, free: 10.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.7048, allocations: 8.031 kB / 0.5048 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04037/0.7452, allocations: 7.245 MB / 0.5118 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/0.7616, allocations: 6.504 MB / 0.5182 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008372/0.7624, allocations: 0.7315 MB / 0.5189 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004706/0.7672, allocations: 0.9622 MB / 0.5198 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05248/0.8197, allocations: 16.59 MB / 0.536 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005234/0.8202, allocations: 11.91 kB / 0.5361 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004047/0.8243, allocations: 409.7 kB / 0.5365 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006689/0.825, allocations: 0.5908 MB / 0.537 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03724/0.8622, allocations: 15.8 MB / 0.5525 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.111/0.9733, allocations: 53.26 MB / 0.6045 GB, free: 4.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02424/0.9975, allocations: 22.73 MB / 0.6267 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00712/1.005, allocations: 3.801 MB / 0.6304 GB, free: 8.117 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3305/1.335, allocations: 11.68 MB / 0.6418 GB, free: 174 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.642e-05/1.335, allocations: 72.62 kB / 0.6419 GB, free: 173.9 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=357): time 6.483e-06/1.335, allocations: 1.094 kB / 0.6419 GB, free: 173.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362): time 0.05208/1.388, allocations: 17.51 MB / 0.6589 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/1.388, allocations: 89.75 kB / 0.659 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/1.399, allocations: 4.76 MB / 0.6637 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.00125/1.401, allocations: 89.58 kB / 0.6638 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003782/1.405, allocations: 4.482 MB / 0.6681 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002222/1.407, allocations: 1.251 MB / 0.6694 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004757/1.412, allocations: 1.183 MB / 0.6705 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.497e-05/1.412, allocations: 309.1 kB / 0.6708 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00584/1.418, allocations: 2.901 MB / 0.6736 GB, free: 160.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007082/1.425, allocations: 5.266 MB / 0.6788 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/1.437, allocations: 8.631 MB / 0.6872 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/1.437, allocations: 27.47 kB / 0.6872 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02226/1.459, allocations: 9.618 MB / 0.6966 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/1.459, allocations: 39.16 kB / 0.6967 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001699/1.46, allocations: 78.75 kB / 0.6968 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004071/1.464, allocations: 1.442 MB / 0.6982 GB, free: 146 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005537/1.469, allocations: 1.329 MB / 0.6995 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/1.487, allocations: 12.67 MB / 0.7118 GB, free: 132.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005977/1.493, allocations: 374.2 kB / 0.7122 GB, free: 132.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001597/1.495, allocations: 304 kB / 0.7125 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.009012/1.504, allocations: 3.92 MB / 0.7163 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001943/1.506, allocations: 453 kB / 0.7167 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01471/1.521, allocations: 6.754 MB / 0.7233 GB, free: 120.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01183/1.533, allocations: 5.584 MB / 0.7288 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.793e-05/1.533, allocations: 12 kB / 0.7288 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.927e-05/1.533, allocations: 23.86 kB / 0.7288 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03472/1.568, allocations: 15.43 MB / 0.7439 GB, free: 99.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/1.568, allocations: 4 kB / 0.7439 GB, free: 99.74 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/1.571, allocations: 0.6714 MB / 0.7446 GB, free: 99.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/1.574, allocations: 1.303 MB / 0.7458 GB, free: 97.76 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007182/1.575, allocations: 89.34 kB / 0.7459 GB, free: 97.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01391/1.589, allocations: 11.55 MB / 0.7572 GB, free: 85.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.589, allocations: 4 kB / 0.7572 GB, free: 85.87 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/1.606, allocations: 10.01 MB / 0.767 GB, free: 75.71 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00332/1.609, allocations: 1.018 MB / 0.768 GB, free: 74.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001684/1.611, allocations: 75.94 kB / 0.768 GB, free: 74.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00339/1.614, allocations: 215.8 kB / 0.7682 GB, free: 74.39 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009006/1.615, allocations: 275.1 kB / 0.7685 GB, free: 74.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004285/1.616, allocations: 112 kB / 0.7686 GB, free: 74.01 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006209/1.622, allocations: 3.233 MB / 0.7718 GB, free: 70.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.61e-07/1.622, allocations: 0 / 0.7718 GB, free: 70.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.009559/1.632, allocations: 1.693 MB / 0.7734 GB, free: 69.08 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.001825/1.634, allocations: 0.508 MB / 0.7739 GB, free: 68.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0134/1.647, allocations: 7.524 MB / 0.7813 GB, free: 61.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.647, allocations: 0 / 0.7813 GB, free: 61.06 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006267/1.653, allocations: 3.612 MB / 0.7848 GB, free: 57.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008086/1.661, allocations: 1.04 MB / 0.7858 GB, free: 56.39 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03919/1.701, allocations: 17.77 MB / 0.8032 GB, free: 38.55 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007641/1.708, allocations: 6.551 MB / 0.8096 GB, free: 31.96 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00527/1.714, allocations: 2.098 MB / 0.8116 GB, free: 29.85 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001078/1.715, allocations: 351.4 kB / 0.8119 GB, free: 29.51 MB / 0.5137 GB Notification: Performance of SimCode: time 1.323e-06/1.715, allocations: 0 / 0.8119 GB, free: 29.51 MB / 0.5137 GB Notification: Performance of Templates: time 0.4002/2.115, allocations: 68.31 MB / 0.8786 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)