Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.007581/0.007581, allocations: 105.3 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.001367/0.001367, allocations: 191.1 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.503/1.503, 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.00119/0.00119, allocations: 47.25 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 46.61 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02629/0.1334, allocations: 24.97 MB / 398.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.1531, allocations: 7.724 MB / 405.9 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006143/0.1592, allocations: 155.5 kB / 406.1 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02087/0.1802, allocations: 8.35 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.01311/0.1933, allocations: 3.054 MB / 417.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007666/0.201, allocations: 1.793 MB / 419.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01726/0.2183, allocations: 11.21 MB / 430.5 MB, free: 7.812 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04026/0.2586, allocations: 23.35 MB / 453.8 MB, free: 300 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2939/0.5525, allocations: 5.964 MB / 459.8 MB, free: 24.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01549/0.568, allocations: 6.536 MB / 466.3 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007083/0.5752, allocations: 1.728 MB / 468 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01127/0.5865, allocations: 2.121 MB / 470.2 MB, free: 23.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008042/0.5945, allocations: 3.454 MB / 473.6 MB, free: 22.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01445/0.609, allocations: 6.434 MB / 480.1 MB, free: 19.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02505/0.6341, allocations: 23.14 MB / 0.4914 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.6342, allocations: 0 / 0.4914 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.6342, allocations: 0 / 0.4914 GB, free: 5.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008069/0.635, allocations: 3.938 kB / 0.4914 GB, free: 5.922 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.04722/0.6822, allocations: 13.55 MB / 0.5046 GB, free: 10.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.6823, allocations: 12.02 kB / 0.5046 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04158/0.7239, allocations: 7.247 MB / 0.5117 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/0.7397, allocations: 6.492 MB / 0.5181 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007004/0.7404, allocations: 0.7263 MB / 0.5188 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004939/0.7454, allocations: 0.9612 MB / 0.5197 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04571/0.7911, allocations: 16.59 MB / 0.5359 GB, free: 11.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000521/0.7916, allocations: 15.89 kB / 0.5359 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004171/0.7958, allocations: 412.2 kB / 0.5363 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006663/0.7965, allocations: 0.5908 MB / 0.5369 GB, free: 10.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03744/0.834, allocations: 15.79 MB / 0.5523 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/0.9427, allocations: 53.26 MB / 0.6043 GB, free: 4.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02296/0.9657, allocations: 22.72 MB / 0.6265 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006555/0.9723, allocations: 3.799 MB / 0.6302 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3081/1.28, allocations: 11.68 MB / 0.6417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.208e-05/1.281, allocations: 69.59 kB / 0.6417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=357): time 6.923e-06/1.281, allocations: 1.344 kB / 0.6417 GB, free: 174.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=362): time 0.04512/1.326, allocations: 17.52 MB / 0.6588 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/1.326, allocations: 93.81 kB / 0.6589 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009504/1.335, allocations: 4.759 MB / 0.6636 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009311/1.336, allocations: 81.77 kB / 0.6636 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002788/1.339, allocations: 4.478 MB / 0.668 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001674/1.341, allocations: 1.255 MB / 0.6692 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001923/1.343, allocations: 1.188 MB / 0.6704 GB, free: 162.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.903e-05/1.343, allocations: 309.1 kB / 0.6707 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004429/1.347, allocations: 2.896 MB / 0.6735 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005164/1.352, allocations: 5.265 MB / 0.6787 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009489/1.362, allocations: 8.638 MB / 0.6871 GB, free: 151 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.085e-05/1.362, allocations: 23.44 kB / 0.6871 GB, free: 151 MB / 0.5137 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0167/1.379, allocations: 9.614 MB / 0.6965 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.566e-05/1.379, allocations: 38.94 kB / 0.6965 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/1.379, allocations: 78 kB / 0.6966 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/1.383, allocations: 1.445 MB / 0.698 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004692/1.387, allocations: 1.324 MB / 0.6993 GB, free: 145 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01456/1.402, allocations: 12.67 MB / 0.7117 GB, free: 132.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005368/1.407, allocations: 371.4 kB / 0.7121 GB, free: 132.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008596/1.408, 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.006857/1.415, allocations: 3.921 MB / 0.7162 GB, free: 128.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/1.416, allocations: 450.4 kB / 0.7166 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/1.427, allocations: 6.762 MB / 0.7232 GB, free: 120.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007798/1.435, allocations: 5.588 MB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/1.435, allocations: 18.84 kB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.872e-05/1.435, allocations: 19.78 kB / 0.7287 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02299/1.458, allocations: 15.44 MB / 0.7438 GB, free: 99.74 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/1.458, allocations: 4.594 kB / 0.7438 GB, free: 99.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002601/1.46, allocations: 0.6669 MB / 0.7444 GB, free: 99.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003267/1.464, allocations: 1.298 MB / 0.7457 GB, free: 97.76 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003381/1.464, allocations: 87.97 kB / 0.7458 GB, free: 97.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01287/1.477, allocations: 11.55 MB / 0.7571 GB, free: 85.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.477, allocations: 11.94 kB / 0.7571 GB, free: 85.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/1.492, allocations: 10 MB / 0.7668 GB, free: 75.71 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002858/1.495, allocations: 1.018 MB / 0.7678 GB, free: 74.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009387/1.496, allocations: 79.92 kB / 0.7679 GB, free: 74.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002478/1.498, allocations: 219.8 kB / 0.7681 GB, free: 74.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007088/1.499, allocations: 268.2 kB / 0.7684 GB, free: 74.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.499, allocations: 116 kB / 0.7685 GB, free: 74 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004666/1.504, allocations: 3.233 MB / 0.7716 GB, free: 70.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/1.504, allocations: 0 / 0.7716 GB, free: 70.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007559/1.512, allocations: 1.688 MB / 0.7733 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.001444/1.513, allocations: 0.5183 MB / 0.7738 GB, free: 68.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01146/1.524, allocations: 7.525 MB / 0.7811 GB, free: 61.05 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/1.525, allocations: 0 / 0.7811 GB, free: 61.05 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005884/1.53, allocations: 3.6 MB / 0.7847 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.005048/1.536, allocations: 1.051 MB / 0.7857 GB, free: 56.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02957/1.565, allocations: 17.76 MB / 0.803 GB, free: 38.54 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007101/1.572, allocations: 6.551 MB / 0.8094 GB, free: 31.94 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005557/1.578, allocations: 2.098 MB / 0.8115 GB, free: 29.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.579, allocations: 355.4 kB / 0.8118 GB, free: 29.49 MB / 0.5137 GB Notification: Performance of SimCode: time 8.41e-07/1.579, allocations: 0 / 0.8118 GB, free: 29.49 MB / 0.5137 GB Notification: Performance of Templates: time 0.4035/1.983, allocations: 68.29 MB / 0.8785 GB, free: 139.8 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)