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_SinglePhase.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_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.656/1.656, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.316e-05/1.322e-05, allocations: 0 / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06896/0.06899, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4474, allocations: 88.14 MB / 349.4 MB, free: 480 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4477, allocations: 77.89 kB / 349.5 MB, free: 440 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.113/0.5607, allocations: 28.31 MB / 377.8 MB, free: 7.133 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.093e-06/0.5608, allocations: 0 / 377.8 MB, free: 7.133 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.471e-05/0.5609, allocations: 27.98 kB / 377.8 MB, free: 7.105 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002567/0.5635, allocations: 1.129 MB / 379 MB, free: 5.926 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.5635, allocations: 12.03 kB / 379 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.5646, allocations: 191 kB / 379.2 MB, free: 5.727 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.567, allocations: 0.805 MB / 380 MB, free: 4.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.5671, allocations: 32 kB / 380 MB, free: 4.848 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.5673, allocations: 71.83 kB / 380.1 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001568/0.5689, allocations: 0.539 MB / 380.6 MB, free: 4.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.5708, allocations: 0.7591 MB / 381.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.196e-05/0.5708, allocations: 0 / 381.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/0.5709, allocations: 0 / 381.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.924e-05/0.571, allocations: 24 kB / 381.4 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007213/0.5782, allocations: 3.779 MB / 385.2 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008319/0.5791, allocations: 412.5 kB / 385.6 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006535/0.5797, allocations: 244.7 kB / 385.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.5798, allocations: 7.984 kB / 385.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.5799, allocations: 38.56 kB / 385.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.265e-06/0.5799, allocations: 0 / 385.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.002932/0.5828, allocations: 1.12 MB / 387 MB, free: 13.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.5829, allocations: 85.55 kB / 387.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.5841, allocations: 0.5977 MB / 387.7 MB, free: 12.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.5841, allocations: 25.7 kB / 387.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005069/0.5847, allocations: 0.5823 MB / 388.3 MB, free: 12.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001854/0.5849, allocations: 173.5 kB / 388.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.5849, allocations: 3.938 kB / 388.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.5851, allocations: 338.8 kB / 388.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.5855, allocations: 141.6 kB / 388.9 MB, free: 11.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.5861, allocations: 432.8 kB / 389.3 MB, free: 11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005064/0.5866, allocations: 216.6 kB / 389.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.854e-06/0.5867, allocations: 4 kB / 389.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001549/0.5882, allocations: 0.6264 MB / 390.2 MB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.5883, allocations: 14.97 kB / 390.2 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/0.5883, allocations: 8 kB / 390.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/0.5887, allocations: 93.95 kB / 390.3 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006937/0.5894, allocations: 167.7 kB / 390.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/0.5929, allocations: 2.879 MB / 393.3 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008327/0.5938, allocations: 31.95 kB / 393.4 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.74e-05/0.5939, allocations: 43.94 kB / 393.4 MB, free: 6.676 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 (86): * Single equations (assignments): 84 * 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.0001998/0.5941, allocations: 124.7 kB / 393.5 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.5943, allocations: 82.97 kB / 393.6 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.5955, allocations: 462 kB / 394.1 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.5955, allocations: 4 kB / 394.1 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.637e-06/0.5955, allocations: 0 / 394.1 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.355e-06/0.5955, allocations: 4 kB / 394.1 MB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.5984, allocations: 1.284 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.78e-06/0.5984, allocations: 4.031 kB / 395.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.5989, allocations: 79.89 kB / 395.4 MB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003512/0.5993, allocations: 77.67 kB / 395.5 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.5993, allocations: 15.95 kB / 395.5 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003378/0.6027, allocations: 2.867 MB / 398.4 MB, free: 1.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.6028, allocations: 7.969 kB / 398.4 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.6045, allocations: 0.8287 MB / 399.2 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004396/0.605, allocations: 192.1 kB / 399.4 MB, free: 216 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.6051, allocations: 4 kB / 399.4 MB, free: 212 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005825/0.6057, allocations: 23.98 kB / 399.4 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.6059, allocations: 43.89 kB / 399.5 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.6059, allocations: 12 kB / 399.5 MB, free: 132 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009359/0.6069, allocations: 455.2 kB / 399.9 MB, free: 15.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.6069, allocations: 3.938 kB / 399.9 MB, free: 15.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00127/0.6082, allocations: 196 kB / 400.1 MB, free: 15.49 MB / 346.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 (40): * Single equations (assignments): 38 * 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.000492/0.6087, allocations: 276.8 kB / 400.4 MB, free: 15.22 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.6102, allocations: 0.6412 MB / 401 MB, free: 14.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.388e-06/0.6102, allocations: 0 / 401 MB, free: 14.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008261/0.611, allocations: 425.2 kB / 401.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.6124, allocations: 187.1 kB / 401.6 MB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.6159, allocations: 1.286 MB / 402.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009492/0.6169, allocations: 1.036 MB / 404 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/0.6172, allocations: 55.44 kB / 404 MB, free: 11.48 MB / 346.7 MB Notification: Performance of SimCode: time 2.101e-06/0.6172, allocations: 0 / 404 MB, free: 11.48 MB / 346.7 MB Notification: Performance of Templates: time 0.2158/0.833, allocations: 20.52 MB / 424.5 MB, free: 99.08 MB / 346.7 MB