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/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.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.551/1.551, allocations: 171.3 MB / 179.2 MB, free: 8.184 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.093e-05/2.126e-05, allocations: 4 kB / 222.5 MB, free: 8.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06865/0.0687, allocations: 38.77 MB / 261.3 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.3658, allocations: 87.34 MB / 348.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.3661, allocations: 81.58 kB / 348.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1086/0.4747, allocations: 27.85 MB / 376.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.97e-06/0.4748, allocations: 0 / 376.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.246e-05/0.4749, allocations: 24 kB / 376.6 MB, free: 8.398 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002487/0.4774, allocations: 1.11 MB / 377.7 MB, free: 7.238 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.4774, allocations: 8.031 kB / 377.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009463/0.4784, allocations: 186.3 kB / 377.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.4806, allocations: 0.7931 MB / 378.7 MB, free: 6.211 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.202e-05/0.4807, allocations: 32 kB / 378.7 MB, free: 6.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.4809, allocations: 63.91 kB / 378.8 MB, free: 6.117 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001509/0.4824, allocations: 0.5428 MB / 379.3 MB, free: 5.574 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.4843, allocations: 0.7513 MB / 380.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.138e-05/0.4843, allocations: 0 / 380.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.738e-05/0.4844, allocations: 0 / 380.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.4845, allocations: 24 kB / 380.1 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006914/0.4914, allocations: 3.733 MB / 383.8 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008001/0.4922, allocations: 416.1 kB / 384.2 MB, free: 400 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005953/0.4929, allocations: 232.7 kB / 384.5 MB, free: 164 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.4929, allocations: 7.938 kB / 384.5 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.493, allocations: 42.55 kB / 384.5 MB, free: 104 kB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 3.564e-06/0.493, allocations: 0 / 384.5 MB, free: 104 kB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002766/0.4957, allocations: 1.108 MB / 385.6 MB, free: 14.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/0.4958, allocations: 81.55 kB / 385.7 MB, free: 14.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.4969, allocations: 0.5741 MB / 386.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.497, allocations: 25.7 kB / 386.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005035/0.4975, allocations: 0.5782 MB / 386.9 MB, free: 13.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.4977, allocations: 165.7 kB / 387 MB, free: 13.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.4977, allocations: 4 kB / 387 MB, free: 13.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.4979, allocations: 334.8 kB / 387.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.4983, allocations: 141.5 kB / 387.5 MB, free: 13 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/0.4989, allocations: 420.4 kB / 387.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.4995, allocations: 216.6 kB / 388.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.035e-06/0.4995, allocations: 4 kB / 388.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001587/0.5011, allocations: 0.6223 MB / 388.7 MB, free: 11.61 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.5011, allocations: 12.47 kB / 388.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.5012, allocations: 12 kB / 388.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004074/0.5016, allocations: 89.67 kB / 388.9 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006907/0.5023, allocations: 155.7 kB / 389 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.5058, allocations: 2.875 MB / 391.9 MB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008165/0.5066, allocations: 23.97 kB / 391.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.982e-05/0.5067, allocations: 36 kB / 391.9 MB, free: 8.176 MB / 330.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 () * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.5069, allocations: 136.6 kB / 392.1 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.5071, allocations: 79.06 kB / 392.2 MB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.5083, allocations: 441.8 kB / 392.6 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.5083, allocations: 8 kB / 392.6 MB, free: 7.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.5083, allocations: 3.938 kB / 392.6 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.5083, allocations: 3.984 kB / 392.6 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.5111, allocations: 1.26 MB / 393.9 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.113e-06/0.5111, allocations: 4 kB / 393.9 MB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.5116, allocations: 71.91 kB / 393.9 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/0.512, allocations: 85.89 kB / 394 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.512, allocations: 0 / 394 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.5153, allocations: 2.875 MB / 396.9 MB, free: 2.883 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.765e-06/0.5154, allocations: 7.984 kB / 396.9 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.5169, allocations: 0.8011 MB / 397.7 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.5173, allocations: 184.2 kB / 397.9 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.5175, allocations: 4 kB / 397.9 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/0.518, allocations: 27.97 kB / 397.9 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.994e-05/0.5181, allocations: 35.95 kB / 398 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.5182, allocations: 12 kB / 398 MB, free: 1.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008234/0.519, allocations: 443.1 kB / 398.4 MB, free: 1.281 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.519, allocations: 0 / 398.4 MB, free: 1.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001226/0.5203, allocations: 196 kB / 398.6 MB, free: 1.09 MB / 330.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 () * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005126/0.5208, allocations: 286.5 kB / 398.9 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.5223, allocations: 0.6293 MB / 399.5 MB, free: 160 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.925e-06/0.5223, allocations: 5.938 kB / 399.5 MB, free: 156 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008246/0.5231, allocations: 411.7 kB / 399.9 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/0.5245, allocations: 179.2 kB / 400.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.5278, allocations: 1.258 MB / 401.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000938/0.5288, allocations: 1.024 MB / 402.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.529, allocations: 55.44 kB / 402.4 MB, free: 13.13 MB / 346.7 MB Notification: Performance of SimCode: time 1.938e-06/0.529, allocations: 0 / 402.4 MB, free: 13.13 MB / 346.7 MB Notification: Performance of Templates: time 0.2094/0.7385, allocations: 20.09 MB / 422.5 MB, free: 99.88 MB / 346.7 MB