Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.547/1.547, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.663e-05, allocations: 0 / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06776/0.0678, allocations: 38.76 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2951/0.3629, allocations: 84.4 MB / 345.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.3632, allocations: 79.45 kB / 345.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1613/0.5245, allocations: 42.27 MB / 388 MB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.826e-06/0.5245, allocations: 0 / 388 MB, free: 12.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001063/0.5247, allocations: 36 kB / 388.1 MB, free: 12.77 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003266/0.5279, allocations: 1.596 MB / 389.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.528, allocations: 8.031 kB / 389.7 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.5292, allocations: 285.7 kB / 389.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003406/0.5326, allocations: 1.208 MB / 391.2 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.691e-05/0.5327, allocations: 52 kB / 391.2 MB, free: 9.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/0.533, allocations: 95.91 kB / 391.3 MB, free: 9.426 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002521/0.5355, allocations: 0.8771 MB / 392.2 MB, free: 8.547 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003059/0.5386, allocations: 1.217 MB / 393.4 MB, free: 7.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.93e-05/0.5387, allocations: 7.906 kB / 393.4 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.5389, allocations: 4 kB / 393.4 MB, free: 7.258 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.113e-05/0.5389, allocations: 36 kB / 393.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.5502, allocations: 6.136 MB / 399.6 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.5518, allocations: 0.5326 MB / 400.1 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009809/0.5528, allocations: 399.1 kB / 400.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.5529, allocations: 8.562 kB / 400.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/0.5529, allocations: 39.12 kB / 400.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 4.576e-06/0.5529, allocations: 0 / 400.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.004447/0.5574, allocations: 1.678 MB / 402.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/0.5575, allocations: 115.6 kB / 402.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.5593, allocations: 0.8898 MB / 403.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.5594, allocations: 33.64 kB / 403.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007318/0.5602, allocations: 0.8581 MB / 404.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.5604, allocations: 248.3 kB / 404.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.5605, allocations: 0 / 404.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.5607, allocations: 350.8 kB / 404.7 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000576/0.5613, allocations: 234.6 kB / 404.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009937/0.5623, allocations: 0.6772 MB / 405.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007718/0.5631, allocations: 352.2 kB / 406 MB, free: 10.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.5631, allocations: 4 kB / 406 MB, free: 10.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002485/0.5656, allocations: 0.9945 MB / 407 MB, free: 9.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.5657, allocations: 14.97 kB / 407 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.5657, allocations: 15.94 kB / 407 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005179/0.5662, allocations: 127.2 kB / 407.1 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.5674, allocations: 259.6 kB / 407.4 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004486/0.5719, allocations: 4.073 MB / 411.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.5731, allocations: 44.03 kB / 411.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.5733, allocations: 52.12 kB / 411.5 MB, free: 4.113 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003089/0.5736, allocations: 168.4 kB / 411.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002943/0.5739, allocations: 122.5 kB / 411.8 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.5759, allocations: 0.7107 MB / 412.5 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.5759, allocations: 8 kB / 412.5 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.237e-06/0.5759, allocations: 0 / 412.5 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.576, allocations: 7.984 kB / 412.5 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004784/0.5807, allocations: 2.029 MB / 414.6 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.5808, allocations: 4 kB / 414.6 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/0.5816, allocations: 132.3 kB / 414.7 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005115/0.5821, allocations: 114.5 kB / 414.8 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.685e-05/0.5822, allocations: 7.984 kB / 414.8 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1904/0.7725, allocations: 4.158 MB / 419 MB, free: 85.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.866e-06/0.7726, allocations: 5.188 kB / 419 MB, free: 85.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002798/0.7754, allocations: 1.367 MB / 420.3 MB, free: 84.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.7762, allocations: 267.9 kB / 420.6 MB, free: 84.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.7764, allocations: 6.688 kB / 420.6 MB, free: 84.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/0.7774, allocations: 34.31 kB / 420.6 MB, free: 84.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.7775, allocations: 61.48 kB / 420.7 MB, free: 84.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.7777, allocations: 21.62 kB / 420.7 MB, free: 84.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001408/0.7791, allocations: 0.6623 MB / 421.4 MB, free: 84.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.494e-06/0.7791, allocations: 1.594 kB / 421.4 MB, free: 84.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002101/0.7812, allocations: 307.5 kB / 421.7 MB, free: 84.64 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006649/0.7819, allocations: 337.2 kB / 422 MB, free: 84.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002013/0.784, allocations: 0.986 MB / 423 MB, free: 84.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.422e-06/0.784, allocations: 1.812 kB / 423 MB, free: 84.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.7851, allocations: 0.6235 MB / 423.6 MB, free: 83.94 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.787, allocations: 294.2 kB / 423.9 MB, free: 83.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005812/0.7928, allocations: 2.306 MB / 426.2 MB, free: 83.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.794, allocations: 1.254 MB / 427.5 MB, free: 82.44 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004603/0.7944, allocations: 88.77 kB / 427.6 MB, free: 82.44 MB / 346.7 MB Notification: Performance of SimCode: time 2.279e-06/0.7945, allocations: 0 / 427.6 MB, free: 82.44 MB / 346.7 MB Notification: Performance of Templates: time 0.04729/0.8418, allocations: 38.88 MB / 466.4 MB, free: 74.37 MB / 346.7 MB