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.007502/0.007502, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001633/0.001634, allocations: 197.2 kB / 16.68 MB, free: 5.93 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.525/1.525, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001453/0.001454, allocations: 57.45 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1206, allocations: 46.61 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0285/0.1491, allocations: 24.97 MB / 398.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01818/0.1673, allocations: 7.716 MB / 405.9 MB, free: 464 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006373/0.1737, allocations: 155.5 kB / 406.1 MB, free: 308 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02183/0.1956, allocations: 8.409 MB / 414.5 MB, free: 7.855 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.01408/0.2097, allocations: 3.093 MB / 417.6 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007329/0.2171, allocations: 1.801 MB / 419.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01933/0.2364, allocations: 11.21 MB / 430.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04362/0.2801, allocations: 23.35 MB / 453.9 MB, free: 168 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2734/0.5535, allocations: 5.98 MB / 459.9 MB, free: 24.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01562/0.5692, allocations: 6.54 MB / 466.4 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007534/0.5767, allocations: 1.725 MB / 468.2 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009202/0.586, allocations: 2.122 MB / 470.3 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007312/0.5933, allocations: 3.448 MB / 473.7 MB, free: 22.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01472/0.6081, allocations: 6.436 MB / 480.2 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02577/0.6339, allocations: 23.14 MB / 0.4915 GB, free: 5.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.6339, allocations: 5.344 kB / 0.4915 GB, free: 5.969 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.6339, allocations: 0 / 0.4915 GB, free: 5.969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007738/0.6347, allocations: 0 / 0.4915 GB, free: 5.969 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.05041/0.6851, allocations: 13.55 MB / 0.5048 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.6852, allocations: 8.031 kB / 0.5048 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04146/0.7267, allocations: 7.249 MB / 0.5118 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01703/0.7437, allocations: 6.496 MB / 0.5182 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009884/0.7448, allocations: 0.7308 MB / 0.5189 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005451/0.7503, allocations: 0.9625 MB / 0.5198 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05066/0.8009, allocations: 16.59 MB / 0.536 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003067/0.8013, allocations: 15.89 kB / 0.5361 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002835/0.8041, allocations: 405.6 kB / 0.5365 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006025/0.8048, allocations: 0.5869 MB / 0.537 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03924/0.844, allocations: 15.8 MB / 0.5525 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/0.9618, allocations: 53.27 MB / 0.6045 GB, free: 4.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02518/0.987, allocations: 22.72 MB / 0.6267 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007053/0.9941, allocations: 3.808 MB / 0.6304 GB, free: 8.117 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2926/1.287, allocations: 11.67 MB / 0.6418 GB, free: 174 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.576e-05/1.287, allocations: 72.05 kB / 0.6418 GB, free: 174 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=357): time 7.344e-06/1.287, allocations: 0 / 0.6418 GB, free: 174 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362): time 0.04276/1.33, allocations: 17.52 MB / 0.659 GB, free: 168.7 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/1.33, allocations: 96.83 kB / 0.659 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006693/1.336, allocations: 4.757 MB / 0.6637 GB, free: 166.9 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000729/1.337, allocations: 85.86 kB / 0.6638 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002497/1.34, allocations: 4.477 MB / 0.6681 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001435/1.341, allocations: 1.251 MB / 0.6694 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001736/1.343, allocations: 1.184 MB / 0.6705 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.506e-05/1.343, allocations: 309.1 kB / 0.6708 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004237/1.347, allocations: 2.901 MB / 0.6736 GB, free: 160.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004846/1.352, allocations: 5.265 MB / 0.6788 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009829/1.362, allocations: 8.636 MB / 0.6872 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.847e-05/1.362, allocations: 19.66 kB / 0.6872 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01632/1.378, allocations: 9.625 MB / 0.6966 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.068e-05/1.378, allocations: 35.19 kB / 0.6967 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/1.379, allocations: 78.62 kB / 0.6968 GB, free: 146.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003769/1.382, allocations: 1.438 MB / 0.6982 GB, free: 146 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005109/1.388, allocations: 1.333 MB / 0.6995 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/1.403, allocations: 12.67 MB / 0.7118 GB, free: 132.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006116/1.41, allocations: 374.5 kB / 0.7122 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001455/1.411, 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.008483/1.42, allocations: 3.916 MB / 0.7163 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002458/1.422, allocations: 454.4 kB / 0.7167 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/1.436, allocations: 6.755 MB / 0.7233 GB, free: 120.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009045/1.446, allocations: 5.588 MB / 0.7288 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-05/1.446, allocations: 12 kB / 0.7288 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.657e-05/1.446, allocations: 19.92 kB / 0.7288 GB, free: 115.2 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03269/1.478, allocations: 15.44 MB / 0.7439 GB, free: 99.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/1.478, allocations: 4 kB / 0.7439 GB, free: 99.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00283/1.481, allocations: 0.6637 MB / 0.7446 GB, free: 99.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00332/1.485, allocations: 1.307 MB / 0.7458 GB, free: 97.75 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007049/1.485, allocations: 87.97 kB / 0.7459 GB, free: 97.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01322/1.499, allocations: 11.55 MB / 0.7572 GB, free: 85.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.499, allocations: 7.938 kB / 0.7572 GB, free: 85.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01396/1.513, allocations: 10.01 MB / 0.767 GB, free: 75.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002576/1.515, allocations: 1.015 MB / 0.768 GB, free: 74.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009132/1.516, allocations: 78.23 kB / 0.768 GB, free: 74.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002393/1.518, allocations: 215.8 kB / 0.7682 GB, free: 74.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000635/1.519, allocations: 275.1 kB / 0.7685 GB, free: 74.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/1.519, allocations: 112 kB / 0.7686 GB, free: 74 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004184/1.524, allocations: 3.233 MB / 0.7718 GB, free: 70.76 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.9e-07/1.524, allocations: 0 / 0.7718 GB, free: 70.76 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006664/1.53, allocations: 1.696 MB / 0.7734 GB, free: 69.07 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.001447/1.532, allocations: 0.5036 MB / 0.7739 GB, free: 68.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.544, allocations: 7.529 MB / 0.7813 GB, free: 61.04 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.544, allocations: 0 / 0.7813 GB, free: 61.04 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006115/1.55, allocations: 3.609 MB / 0.7848 GB, free: 57.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005111/1.555, allocations: 1.036 MB / 0.7858 GB, free: 56.37 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/1.583, allocations: 17.77 MB / 0.8032 GB, free: 38.54 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006203/1.59, allocations: 6.551 MB / 0.8096 GB, free: 31.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005068/1.595, allocations: 2.102 MB / 0.8116 GB, free: 29.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.596, allocations: 351.4 kB / 0.8119 GB, free: 29.49 MB / 0.5137 GB Notification: Performance of SimCode: time 9.72e-07/1.596, allocations: 0 / 0.8119 GB, free: 29.49 MB / 0.5137 GB Notification: Performance of Templates: time 0.3797/1.976, allocations: 68.3 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)