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_Start.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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.785/1.785, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003557, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08049, allocations: 44.49 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3713/0.4519, allocations: 88.7 MB / 397.1 MB, free: 18.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.4522, allocations: 85.69 kB / 397.2 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08564/0.5378, allocations: 22.96 MB / 420.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.5379, allocations: 0 / 420.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.199e-05/0.5379, allocations: 19.5 kB / 420.2 MB, free: 11.07 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001819/0.5398, allocations: 1.096 MB / 421.3 MB, free: 10.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.5398, allocations: 7.75 kB / 421.3 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005761/0.5404, allocations: 147 kB / 421.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.5418, allocations: 0.688 MB / 422.1 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.944e-05/0.5418, allocations: 60.38 kB / 422.2 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.542, allocations: 81.72 kB / 422.3 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.5435, allocations: 0.7711 MB / 423.1 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.831e-05/0.5436, allocations: 7.859 kB / 423.1 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.794e-05/0.5437, allocations: 34.62 kB / 423.1 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.5437, allocations: 19.38 kB / 423.1 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.545, allocations: 0.5351 MB / 423.6 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004588/0.5496, allocations: 3.452 MB / 427.1 MB, free: 7.164 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.5502, allocations: 234 kB / 427.3 MB, free: 7.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.5503, allocations: 3.875 kB / 427.3 MB, free: 7.113 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.5503, allocations: 38.55 kB / 427.4 MB, free: 7.066 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 3.735e-06/0.5503, allocations: 0 / 427.4 MB, free: 7.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.00227/0.5526, allocations: 1.075 MB / 428.4 MB, free: 6.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.5527, allocations: 80.56 kB / 428.5 MB, free: 6.367 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009732/0.5536, allocations: 0.6212 MB / 429.1 MB, free: 6.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.5537, allocations: 30.02 kB / 429.2 MB, free: 6.121 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.5539, allocations: 0.5218 MB / 429.7 MB, free: 5.758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.554, allocations: 104.1 kB / 429.8 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.5541, allocations: 14.75 kB / 429.8 MB, free: 5.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.841e-05/0.5541, allocations: 341.1 kB / 430.1 MB, free: 5.352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.5545, allocations: 132.6 kB / 430.3 MB, free: 5.332 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004517/0.555, allocations: 422.6 kB / 430.7 MB, free: 4.926 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004246/0.5554, allocations: 205.2 kB / 430.9 MB, free: 4.895 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.5554, allocations: 3.875 kB / 430.9 MB, free: 4.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001151/0.5566, allocations: 0.5878 MB / 431.5 MB, free: 4.711 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.5566, allocations: 7.75 kB / 431.5 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.5566, allocations: 11.66 kB / 431.5 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001602/0.5568, allocations: 32.06 kB / 431.5 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005594/0.5574, allocations: 146.3 kB / 431.7 MB, free: 4.672 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008766/0.5583, allocations: 1.296 MB / 433 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006888/0.559, allocations: 42.64 kB / 433 MB, free: 3.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.5591, allocations: 34.38 kB / 433 MB, free: 3.355 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 (74): * Single equations (assignments): 73 * 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.000447/0.5595, allocations: 232.1 kB / 433.3 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.5596, allocations: 70.12 kB / 433.3 MB, free: 3.191 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008231/0.5605, allocations: 345.9 kB / 433.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.756e-06/0.5605, allocations: 3.875 kB / 433.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.202e-06/0.5605, allocations: 0 / 433.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.613e-06/0.5605, allocations: 4.031 kB / 433.7 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.5625, allocations: 1.097 MB / 434.8 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-06/0.5625, allocations: 3.969 kB / 434.8 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.5629, allocations: 62.66 kB / 434.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.563, allocations: 24.72 kB / 434.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.5631, allocations: 11.38 kB / 434.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007709/0.5639, allocations: 1.275 MB / 436.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5639, allocations: 0 / 436.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.565, allocations: 0.6646 MB / 436.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.5653, allocations: 173.5 kB / 437 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.5654, allocations: 10.98 kB / 437 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.5659, allocations: 27.69 kB / 437 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.159e-05/0.566, allocations: 18.83 kB / 437 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.566, allocations: 15.23 kB / 437.1 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007576/0.5668, allocations: 481.7 kB / 437.5 MB, free: 436 kB / 314.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.5668, allocations: 0 / 437.5 MB, free: 436 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001008/0.5678, allocations: 198.4 kB / 437.7 MB, free: 428 kB / 314.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 (27): * Single equations (assignments): 26 * 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.000403/0.5683, allocations: 283.8 kB / 438 MB, free: 252 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009636/0.5692, allocations: 476.1 kB / 438.5 MB, free: 60 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.942e-06/0.5693, allocations: 0 / 438.5 MB, free: 60 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.5698, allocations: 245.1 kB / 438.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009941/0.5708, allocations: 170.7 kB / 438.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.5739, allocations: 1.785 MB / 440.7 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008026/0.5748, allocations: 0.9608 MB / 441.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.575, allocations: 58.62 kB / 441.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.578e-06/0.575, allocations: 0 / 441.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of Templates: time 0.02392/0.5989, allocations: 13.77 MB / 455.4 MB, free: 15.84 MB / 346.7 MB