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.DCSE_Start.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadModel(Modelica): time 1.644/1.644, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003603, allocations: 15.98 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06838/0.06877, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009553/0.07837, allocations: 6.504 MB / 278.4 MB, free: 5.668 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005108/0.08352, allocations: 2.512 MB / 281 MB, free: 3.148 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008259/0.08439, allocations: 19.94 kB / 281 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.08593, allocations: 485.7 kB / 281.4 MB, free: 2.652 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.0874, allocations: 486.6 kB / 281.9 MB, free: 2.176 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.08791, allocations: 151.8 kB / 282.1 MB, free: 2.027 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.08975, allocations: 1.046 MB / 283.1 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007764/0.09054, allocations: 415.2 kB / 283.5 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006622/0.09122, allocations: 450.1 kB / 284 MB, free: 128 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006807/0.09193, allocations: 493.8 kB / 284.4 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.09209, allocations: 60 kB / 284.5 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003442/0.09245, allocations: 99.98 kB / 284.6 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.09266, allocations: 191.2 kB / 284.8 MB, free: 15.29 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003055/0.09298, allocations: 257.1 kB / 285 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.0947, allocations: 1.317 MB / 286.4 MB, free: 13.71 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.231e-06/0.09472, allocations: 0 / 286.4 MB, free: 13.71 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.366e-06/0.09474, allocations: 0 / 286.4 MB, free: 13.71 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.09476, allocations: 0 / 286.4 MB, free: 13.71 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002451/0.09723, allocations: 1.258 MB / 287.6 MB, free: 12.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.09728, allocations: 8.031 kB / 287.6 MB, free: 12.4 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006565/0.09794, allocations: 174.4 kB / 287.8 MB, free: 12.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002189/0.1002, allocations: 0.6989 MB / 288.5 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.1004, allocations: 74 kB / 288.6 MB, free: 11.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004001/0.1008, allocations: 99.98 kB / 288.7 MB, free: 11.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004749/0.1056, allocations: 0.9268 MB / 289.6 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.572e-05/0.1057, allocations: 11.91 kB / 289.6 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/0.106, allocations: 36 kB / 289.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-05/0.1061, allocations: 24 kB / 289.7 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00399/0.1101, allocations: 0.6402 MB / 290.3 MB, free: 9.648 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0145/0.1246, allocations: 3.903 MB / 294.2 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.1266, allocations: 441.4 kB / 294.6 MB, free: 5.062 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.043e-05/0.1267, allocations: 4.328 kB / 294.6 MB, free: 5.059 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.193e-05/0.1268, allocations: 38.89 kB / 294.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 6.438e-06/0.1268, allocations: 0 / 294.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of matching and sorting (n=44): time 0.007077/0.1339, allocations: 1.383 MB / 296.1 MB, free: 3.555 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.134, allocations: 85.05 kB / 296.1 MB, free: 3.453 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002957/0.137, allocations: 0.7707 MB / 296.9 MB, free: 2.676 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.637e-05/0.1371, allocations: 29.7 kB / 296.9 MB, free: 2.641 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009979/0.1382, allocations: 0.5784 MB / 297.5 MB, free: 2.055 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/0.1385, allocations: 161.7 kB / 297.7 MB, free: 1.895 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/0.1386, allocations: 8 kB / 297.7 MB, free: 1.887 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003479/0.139, allocations: 338.8 kB / 298 MB, free: 1.547 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.1401, allocations: 169.8 kB / 298.2 MB, free: 1.379 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001525/0.1416, allocations: 456 kB / 298.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.143, allocations: 249.5 kB / 298.9 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.143, allocations: 4 kB / 298.9 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.1943/0.3374, allocations: 0.6873 MB / 299.6 MB, free: 29.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.3374, allocations: 9.609 kB / 299.6 MB, free: 29.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.3375, allocations: 10.41 kB / 299.6 MB, free: 29.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003135/0.3378, allocations: 71.34 kB / 299.6 MB, free: 29.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006961/0.3385, allocations: 164.1 kB / 299.8 MB, free: 29.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/0.3407, allocations: 2.802 MB / 302.6 MB, free: 26.67 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/0.3414, allocations: 41.14 kB / 302.6 MB, free: 26.67 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.3415, allocations: 36.98 kB / 302.7 MB, free: 26.67 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005248/0.342, allocations: 260.4 kB / 302.9 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.3422, allocations: 84.19 kB / 303 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/0.3434, allocations: 480.2 kB / 303.5 MB, free: 26.48 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.755e-06/0.3434, allocations: 4.875 kB / 303.5 MB, free: 26.48 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.154e-06/0.3434, allocations: 1.438 kB / 303.5 MB, free: 26.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.404e-06/0.3434, allocations: 2.812 kB / 303.5 MB, free: 26.48 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/0.3461, allocations: 1.385 MB / 304.9 MB, free: 25.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.515e-06/0.3461, allocations: 6.141 kB / 304.9 MB, free: 25.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.3466, allocations: 75.05 kB / 305 MB, free: 25.79 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000245/0.3468, allocations: 58.41 kB / 305 MB, free: 25.77 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.87e-05/0.3469, allocations: 13.12 kB / 305 MB, free: 25.76 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.3489, allocations: 2.803 MB / 307.8 MB, free: 23 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6e-06/0.3489, allocations: 2.875 kB / 307.8 MB, free: 23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.3504, allocations: 0.7646 MB / 308.6 MB, free: 22.6 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.3507, allocations: 188.3 kB / 308.8 MB, free: 22.46 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.3509, allocations: 9.875 kB / 308.8 MB, free: 22.46 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.3514, allocations: 31.17 kB / 308.8 MB, free: 22.45 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3516, allocations: 35.8 kB / 308.9 MB, free: 22.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.3516, allocations: 17.78 kB / 308.9 MB, free: 22.44 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009177/0.3525, allocations: 0.5184 MB / 309.4 MB, free: 22.21 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.3526, allocations: 0 / 309.4 MB, free: 22.21 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001181/0.3537, allocations: 196.7 kB / 309.6 MB, free: 22.19 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002314/0.354, allocations: 134.2 kB / 309.7 MB, free: 22.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3555, allocations: 0.6698 MB / 310.4 MB, free: 21.73 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.103e-06/0.3555, allocations: 2.375 kB / 310.4 MB, free: 21.73 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007647/0.3563, allocations: 437.9 kB / 310.8 MB, free: 21.43 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.3576, allocations: 202.8 kB / 311 MB, free: 21.37 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00372/0.3614, allocations: 2.139 MB / 313.2 MB, free: 20 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006999/0.3621, allocations: 1.024 MB / 314.2 MB, free: 19.29 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/0.3624, allocations: 58.23 kB / 314.2 MB, free: 19.28 MB / 250.7 MB Notification: Performance of SimCode: time 2.58e-06/0.3624, allocations: 1.125 kB / 314.2 MB, free: 19.28 MB / 250.7 MB Notification: Performance of Templates: time 0.02615/0.3885, allocations: 19.59 MB / 333.8 MB, free: 4.824 MB / 250.7 MB