Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 8 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08014/0.08053, allocations: 44.51 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.359/0.4396, allocations: 89.22 MB / 397.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.4399, allocations: 86.28 kB / 397.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08714/0.527, allocations: 23.8 MB / 421.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.803e-06/0.5271, allocations: 0 / 421.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.224e-05/0.5272, allocations: 26.66 kB / 421.6 MB, free: 10.48 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002159/0.5293, allocations: 1.124 MB / 422.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.5294, allocations: 11.41 kB / 422.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006254/0.53, allocations: 155 kB / 422.9 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.5315, allocations: 0.6756 MB / 423.6 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.408e-05/0.5316, allocations: 64.83 kB / 423.6 MB, free: 9.188 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.5318, allocations: 95.28 kB / 423.7 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.5335, allocations: 0.8112 MB / 424.5 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.5336, allocations: 3.938 kB / 424.5 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.596e-05/0.5337, allocations: 32.94 kB / 424.6 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.923e-05/0.5337, allocations: 25.14 kB / 424.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.5352, allocations: 0.5542 MB / 425.1 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005343/0.5406, allocations: 3.5 MB / 428.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.5413, allocations: 246.4 kB / 428.9 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.668e-05/0.5413, allocations: 11.77 kB / 428.9 MB, free: 6.465 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.5414, allocations: 37.69 kB / 428.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.613e-06/0.5414, allocations: 0 / 428.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002625/0.544, allocations: 1.114 MB / 430 MB, free: 5.801 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.5441, allocations: 80.98 kB / 430.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.5453, allocations: 0.6842 MB / 430.8 MB, free: 5.488 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.5453, allocations: 29.52 kB / 430.8 MB, free: 5.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.5456, allocations: 0.516 MB / 431.3 MB, free: 5.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.466e-05/0.5457, allocations: 109.1 kB / 431.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/0.5457, allocations: 7.5 kB / 431.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.055e-05/0.5458, allocations: 336.3 kB / 431.8 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.5462, allocations: 137 kB / 431.9 MB, free: 4.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000467/0.5467, allocations: 425.9 kB / 432.3 MB, free: 4.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005067/0.5472, allocations: 209.6 kB / 432.5 MB, free: 4.238 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.151e-06/0.5472, allocations: 3.875 kB / 432.6 MB, free: 4.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001328/0.5486, allocations: 0.5846 MB / 433.1 MB, free: 4.059 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.5486, allocations: 15.81 kB / 433.2 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.5487, allocations: 7.75 kB / 433.2 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.5489, allocations: 36.2 kB / 433.2 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/0.5494, allocations: 162.4 kB / 433.4 MB, free: 4.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008879/0.5503, allocations: 1.291 MB / 434.6 MB, free: 2.711 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/0.5511, allocations: 43.08 kB / 434.7 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.5512, allocations: 39.2 kB / 434.7 MB, free: 2.695 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004849/0.5517, allocations: 240.4 kB / 435 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.5519, allocations: 77.53 kB / 435 MB, free: 2.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009128/0.5528, allocations: 353.2 kB / 435.4 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.522e-06/0.5528, allocations: 0 / 435.4 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.847e-06/0.5528, allocations: 3.844 kB / 435.4 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.9e-06/0.5529, allocations: 3.953 kB / 435.4 MB, free: 2.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.555, allocations: 1.124 MB / 436.5 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.169e-06/0.5551, allocations: 4 kB / 436.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.5555, allocations: 58.53 kB / 436.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/0.5557, allocations: 32.12 kB / 436.6 MB, free: 1.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.5557, allocations: 7.375 kB / 436.6 MB, free: 1.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008628/0.5566, allocations: 1.283 MB / 437.9 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.614e-06/0.5566, allocations: 3.875 kB / 437.9 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.5579, allocations: 0.6799 MB / 438.6 MB, free: 60 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004512/0.5584, allocations: 187.4 kB / 438.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.5585, allocations: 7.281 kB / 438.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005045/0.559, allocations: 27.06 kB / 438.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/0.5591, allocations: 27.14 kB / 438.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.5592, allocations: 11.28 kB / 438.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009642/0.5602, allocations: 0.5274 MB / 439.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.5602, allocations: 0 / 439.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001124/0.5613, allocations: 214.7 kB / 439.6 MB, free: 15.61 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000587/0.5619, allocations: 321.8 kB / 439.9 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.5632, allocations: 491.5 kB / 440.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.923e-06/0.5632, allocations: 4 kB / 440.4 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005485/0.5638, allocations: 242.6 kB / 440.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.5652, allocations: 209.3 kB / 440.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003666/0.5689, allocations: 1.821 MB / 442.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008304/0.5698, allocations: 0.9687 MB / 443.6 MB, free: 11.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.57, allocations: 59.42 kB / 443.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.752e-06/0.5701, allocations: 0 / 443.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of Templates: time 0.02699/0.5971, allocations: 14.84 MB / 458.5 MB, free: 13.04 MB / 346.7 MB