Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005568, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1222, allocations: 44.5 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4518/0.5741, allocations: 89.94 MB / 399 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004652/0.5746, allocations: 86.94 kB / 399.1 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1577/0.7323, allocations: 40.6 MB / 439.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.7324, allocations: 0 / 439.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001528/0.7326, allocations: 36 kB / 439.7 MB, free: 13.69 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005446/0.738, allocations: 1.753 MB / 441.5 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.7381, allocations: 12.03 kB / 441.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.7396, allocations: 261.5 kB / 441.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/0.743, allocations: 1.097 MB / 442.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.7431, allocations: 120.5 kB / 443 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003583/0.7435, allocations: 161.8 kB / 443.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004017/0.7476, allocations: 1.463 MB / 444.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.637e-05/0.7477, allocations: 11.84 kB / 444.6 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/0.7479, allocations: 61.88 kB / 444.6 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.748e-05/0.748, allocations: 43.98 kB / 444.7 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003293/0.7513, allocations: 0.9756 MB / 445.7 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.7653, allocations: 6.664 MB / 452.3 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.7667, allocations: 408.7 kB / 452.7 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.7668, allocations: 11.8 kB / 452.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007994/0.7676, allocations: 276.8 kB / 453 MB, free: 1.781 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.336e-06/0.7676, allocations: 0 / 453 MB, free: 1.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.005721/0.7734, allocations: 1.801 MB / 454.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.7735, allocations: 166.7 kB / 455 MB, free: 15.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002908/0.7764, allocations: 1.218 MB / 456.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.7767, allocations: 41.7 kB / 456.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.7777, allocations: 0.8667 MB / 457.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.7781, allocations: 205 kB / 457.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.7781, allocations: 24 kB / 457.3 MB, free: 13.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.7784, allocations: 353.9 kB / 457.7 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008301/0.7792, allocations: 234.5 kB / 457.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.7806, allocations: 0.8073 MB / 458.7 MB, free: 11.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.7817, allocations: 403.5 kB / 459.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.7818, allocations: 8 kB / 459.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003475/0.7853, allocations: 1.193 MB / 460.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/0.7854, allocations: 37.7 kB / 460.3 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.693e-05/0.7854, allocations: 32 kB / 460.4 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003536/0.7858, allocations: 65.69 kB / 460.4 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.7874, allocations: 275.5 kB / 460.7 MB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/0.7903, allocations: 2.587 MB / 463.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.7921, allocations: 80 kB / 463.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.7923, allocations: 60 kB / 463.4 MB, free: 6.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001035/0.7933, allocations: 357.3 kB / 463.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.7937, allocations: 130.4 kB / 463.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.7955, allocations: 0.5645 MB / 464.5 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.7956, allocations: 4 kB / 464.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.7956, allocations: 4 kB / 464.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.7956, allocations: 3.984 kB / 464.5 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00493/0.8006, allocations: 1.868 MB / 466.3 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.8006, allocations: 4 kB / 466.3 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000836/0.8015, allocations: 95.89 kB / 466.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002508/0.8017, allocations: 49.69 kB / 466.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.172e-05/0.8018, allocations: 12 kB / 466.5 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002604/0.8044, allocations: 2.568 MB / 469.1 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.8045, allocations: 4 kB / 469.1 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.807, allocations: 0.9377 MB / 470 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.8077, allocations: 247.5 kB / 470.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.808, allocations: 19.94 kB / 470.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009046/0.809, allocations: 39.91 kB / 470.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.8091, allocations: 51.89 kB / 470.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.872e-05/0.8092, allocations: 20 kB / 470.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001893/0.8111, allocations: 0.8032 MB / 471.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8111, allocations: 0 / 471.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002078/0.8132, allocations: 340 kB / 471.5 MB, free: 14.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006981/0.814, allocations: 321 kB / 471.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.8165, allocations: 0.9452 MB / 472.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.8166, allocations: 64 / 472.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.8178, allocations: 473 kB / 473.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.8202, allocations: 317.6 kB / 473.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007714/0.828, allocations: 3.078 MB / 476.6 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.8292, allocations: 1.213 MB / 477.8 MB, free: 7.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00126/0.8305, allocations: 171.3 kB / 478 MB, free: 7.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.8308, allocations: 87.42 kB / 478.1 MB, free: 7.305 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.8308, allocations: 0 / 478.1 MB, free: 7.305 MB / 362.7 MB Notification: Performance of Templates: time 0.0574/0.8882, allocations: 15.87 MB / 494 MB, free: 7.5 MB / 378.7 MB