Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.000342, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.136, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.5175, allocations: 84.83 MB / 357.5 MB, free: 4.828 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.5179, allocations: 86.27 kB / 357.5 MB, free: 4.781 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1845/0.7024, allocations: 40.76 MB / 398.3 MB, free: 1.648 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.7025, allocations: 0 / 398.3 MB, free: 1.648 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001574/0.7026, allocations: 39.94 kB / 398.3 MB, free: 1.609 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005876/0.7085, allocations: 1.755 MB / 400.1 MB, free: 15.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.7086, allocations: 8.031 kB / 400.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001502/0.7101, allocations: 257.6 kB / 400.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003549/0.7137, allocations: 1.109 MB / 401.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.7139, allocations: 111.1 kB / 401.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00046/0.7144, allocations: 159.9 kB / 401.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004408/0.7188, allocations: 1.476 MB / 403.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-05/0.7189, allocations: 8 kB / 403.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000215/0.7191, allocations: 60 kB / 403.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.863e-05/0.7192, allocations: 40 kB / 403.3 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003569/0.7228, allocations: 0.9863 MB / 404.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01423/0.737, allocations: 6.652 MB / 410.9 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.7385, allocations: 428.6 kB / 411.4 MB, free: 4.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.594e-05/0.7386, allocations: 4.438 kB / 411.4 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007834/0.7394, allocations: 272.8 kB / 411.6 MB, free: 3.727 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 3.136e-06/0.7395, allocations: 0 / 411.6 MB, free: 3.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.005716/0.7452, allocations: 1.794 MB / 413.4 MB, free: 1.836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.7454, allocations: 162.8 kB / 413.6 MB, free: 1.641 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.7483, allocations: 1.226 MB / 414.8 MB, free: 408 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.7485, allocations: 33.7 kB / 414.8 MB, free: 368 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.7495, allocations: 0.8752 MB / 415.7 MB, free: 15.47 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003457/0.7499, allocations: 209.1 kB / 415.9 MB, free: 15.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.75, allocations: 24 kB / 415.9 MB, free: 15.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.7502, allocations: 345.9 kB / 416.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008361/0.7511, allocations: 242.5 kB / 416.5 MB, free: 14.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.7524, allocations: 0.8073 MB / 417.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.7535, allocations: 403.5 kB / 417.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.7536, allocations: 4 kB / 417.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003436/0.757, allocations: 1.192 MB / 418.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/0.7571, allocations: 46.62 kB / 419 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-05/0.7572, allocations: 20 kB / 419 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/0.7575, allocations: 62.27 kB / 419 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.7592, allocations: 279.5 kB / 419.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.762, allocations: 2.587 MB / 421.9 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.7638, allocations: 71.92 kB / 422 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.764, allocations: 67.95 kB / 422 MB, free: 8.559 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.001065/0.7651, allocations: 365.3 kB / 422.4 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003811/0.7655, allocations: 134.3 kB / 422.5 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.7674, allocations: 0.5567 MB / 423.1 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.7674, allocations: 11.95 kB / 423.1 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.7674, allocations: 4 kB / 423.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.7674, allocations: 3.984 kB / 423.1 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004878/0.7723, allocations: 1.853 MB / 425 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.7724, allocations: 0 / 425 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008705/0.7733, allocations: 111.8 kB / 425.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.7735, allocations: 54.08 kB / 425.1 MB, free: 5.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.657e-05/0.7736, allocations: 16 kB / 425.1 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003784/0.7774, allocations: 2.548 MB / 427.7 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-05/0.7775, allocations: 4 kB / 427.7 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004005/0.7815, allocations: 0.9372 MB / 428.6 MB, free: 1.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/0.7828, allocations: 259.4 kB / 428.9 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005193/0.7834, allocations: 20 kB / 428.9 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/0.785, allocations: 36.09 kB / 428.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/0.7853, allocations: 55.83 kB / 429 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.16e-05/0.7854, allocations: 24 kB / 429 MB, free: 1.094 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003113/0.7885, allocations: 0.8031 MB / 429.8 MB, free: 296 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.312e-06/0.7886, allocations: 0 / 429.8 MB, free: 296 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.2581/1.047, allocations: 342.9 kB / 430.1 MB, free: 87.5 MB / 346.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.0007806/1.048, allocations: 304.2 kB / 430.4 MB, free: 87.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002655/1.05, allocations: 0.9328 MB / 431.4 MB, free: 87.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.05, allocations: 1.375 kB / 431.4 MB, free: 87.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/1.052, allocations: 478.8 kB / 431.8 MB, free: 86.92 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/1.054, allocations: 309.6 kB / 432.1 MB, free: 86.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/1.064, allocations: 3.088 MB / 435.2 MB, free: 85.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/1.065, allocations: 1.213 MB / 436.4 MB, free: 84.63 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001391/1.066, allocations: 167.7 kB / 436.6 MB, free: 84.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/1.067, allocations: 88.48 kB / 436.7 MB, free: 84.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.202e-06/1.067, allocations: 1.859 kB / 436.7 MB, free: 84.59 MB / 346.7 MB Notification: Performance of Templates: time 0.04899/1.116, allocations: 15.86 MB / 452.6 MB, free: 83.6 MB / 346.7 MB