Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000515/0.0005153, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1387, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.5533, allocations: 83.56 MB / 356.1 MB, free: 6.625 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.5536, allocations: 87.33 kB / 356.2 MB, free: 6.578 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.6584, allocations: 23.05 MB / 379.2 MB, free: 3.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.6585, allocations: 0 / 379.2 MB, free: 3.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.012e-05/0.6586, allocations: 16 kB / 379.3 MB, free: 3.145 MB / 298.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.00292/0.6615, allocations: 1.087 MB / 380.3 MB, free: 2.078 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.6616, allocations: 16.03 kB / 380.4 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007553/0.6623, allocations: 146.6 kB / 380.5 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/0.6644, allocations: 0.6929 MB / 381.2 MB, free: 1.328 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.507e-05/0.6644, allocations: 57.19 kB / 381.3 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.6646, allocations: 78.75 kB / 381.3 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.6668, allocations: 0.7789 MB / 382.1 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.426e-05/0.6668, allocations: 3.906 kB / 382.1 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.6669, allocations: 32.81 kB / 382.1 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-05/0.667, allocations: 20 kB / 382.2 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001834/0.6688, allocations: 0.5385 MB / 382.7 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007244/0.6761, allocations: 3.446 MB / 386.2 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007702/0.6769, allocations: 243.3 kB / 386.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.677, allocations: 7.953 kB / 386.4 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.677, allocations: 30.56 kB / 386.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 2.645e-06/0.6771, allocations: 4 kB / 386.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.003358/0.6804, allocations: 1.081 MB / 387.5 MB, free: 12.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.6805, allocations: 77.34 kB / 387.6 MB, free: 12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.682, allocations: 0.7048 MB / 388.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.763e-05/0.6821, allocations: 29.58 kB / 388.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004327/0.6825, allocations: 0.5081 MB / 388.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.6826, allocations: 107.7 kB / 388.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.6827, allocations: 17.69 kB / 389 MB, free: 10.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6829, allocations: 339.5 kB / 389.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005046/0.6834, allocations: 132.7 kB / 389.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007763/0.6842, allocations: 431.6 kB / 389.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.6848, allocations: 209.4 kB / 390 MB, free: 9.879 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.6848, allocations: 4 kB / 390 MB, free: 9.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001649/0.6865, allocations: 0.581 MB / 390.6 MB, free: 9.375 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.6865, allocations: 8 kB / 390.6 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.6866, allocations: 12 kB / 390.6 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000221/0.6868, allocations: 32.84 kB / 390.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008532/0.6877, allocations: 143.8 kB / 390.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.689, allocations: 1.299 MB / 392.1 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008316/0.6899, allocations: 40.23 kB / 392.2 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.225e-05/0.6899, allocations: 35.95 kB / 392.2 MB, free: 7.672 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.0005894/0.6905, allocations: 225.7 kB / 392.4 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.6907, allocations: 75.06 kB / 392.5 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.6918, allocations: 337.4 kB / 392.8 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.6919, allocations: 4 kB / 392.8 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6919, allocations: 3.938 kB / 392.8 MB, free: 7.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.6919, allocations: 7.938 kB / 392.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.6947, allocations: 1.098 MB / 393.9 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.6948, allocations: 4 kB / 393.9 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/0.6953, allocations: 59.91 kB / 394 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.6955, allocations: 25.06 kB / 394 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.6955, allocations: 12 kB / 394 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.6969, allocations: 1.28 MB / 395.3 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.6969, allocations: 0 / 395.3 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.6985, allocations: 0.5716 MB / 395.9 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003663/0.6989, allocations: 172.3 kB / 396 MB, free: 3.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.699, allocations: 8 kB / 396.1 MB, free: 3.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.6996, allocations: 23.97 kB / 396.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.6998, allocations: 35.86 kB / 396.1 MB, free: 3.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.6998, allocations: 8 kB / 396.1 MB, free: 3.445 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00101/0.7008, allocations: 483 kB / 396.6 MB, free: 2.977 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7008, allocations: 0 / 396.6 MB, free: 2.977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001112/0.7019, allocations: 196 kB / 396.8 MB, free: 2.785 MB / 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.0005878/0.7025, allocations: 280.9 kB / 397.1 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.704, allocations: 468.7 kB / 397.5 MB, free: 2.035 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.704, allocations: 0 / 397.5 MB, free: 2.035 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.7046, allocations: 251 kB / 397.8 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.7061, allocations: 163 kB / 397.9 MB, free: 1.621 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/0.7102, allocations: 1.794 MB / 399.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007373/0.711, allocations: 0.957 MB / 400.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.7113, allocations: 51.44 kB / 400.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.422e-06/0.7113, allocations: 0 / 400.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of Templates: time 0.03045/0.7417, allocations: 13.79 MB / 414.5 MB, free: 0.9414 MB / 330.7 MB