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.DCPM_withLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.608/1.608, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003694, allocations: 8 kB / 233.2 MB, free: 3.039 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07278/0.07318, allocations: 38.76 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01425/0.08748, allocations: 9.669 MB / 281.6 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007408/0.09494, allocations: 3.214 MB / 284.8 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/0.0969, allocations: 31.94 kB / 284.8 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00219/0.09913, allocations: 0.5323 MB / 285.4 MB, free: 14.69 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003056/0.1022, allocations: 0.7596 MB / 286.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1035, allocations: 247.7 kB / 286.4 MB, free: 13.69 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004187/0.1077, allocations: 1.713 MB / 288.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001571/0.1094, allocations: 0.6833 MB / 288.8 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001499/0.1109, allocations: 0.7081 MB / 289.5 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.1122, allocations: 0.7855 MB / 290.3 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003129/0.1126, allocations: 104 kB / 290.4 MB, free: 9.66 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000582/0.1132, allocations: 148 kB / 290.5 MB, free: 9.516 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003278/0.1135, allocations: 302.7 kB / 290.8 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005781/0.1141, allocations: 404.7 kB / 291.2 MB, free: 8.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003261/0.1174, allocations: 2.162 MB / 293.4 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.006e-06/0.1174, allocations: 0 / 293.4 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.998e-06/0.1174, allocations: 0 / 293.4 MB, free: 6.648 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.251e-05/0.1175, allocations: 0 / 293.4 MB, free: 6.648 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004076/0.1216, allocations: 1.842 MB / 295.2 MB, free: 4.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.1216, allocations: 8.031 kB / 295.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009634/0.1226, allocations: 261.4 kB / 295.5 MB, free: 4.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002761/0.1254, allocations: 1.071 MB / 296.5 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001362/0.1256, allocations: 115.1 kB / 296.7 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000348/0.1259, allocations: 155.9 kB / 296.8 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003687/0.1296, allocations: 1.496 MB / 298.3 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-05/0.1297, allocations: 11.89 kB / 298.3 MB, free: 1.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/0.1299, allocations: 60 kB / 298.4 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.593e-05/0.13, allocations: 40 kB / 298.4 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003093/0.1331, allocations: 1.045 MB / 299.5 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1866/0.3197, allocations: 6.212 MB / 305.7 MB, free: 25.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/0.3216, allocations: 0.603 MB / 306.3 MB, free: 25.61 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.753e-05/0.3217, allocations: 10.11 kB / 306.3 MB, free: 25.61 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.3218, allocations: 47.84 kB / 306.3 MB, free: 25.55 MB / 250.7 MB Notification: Performance of pre-optimization done (n=66): time 4.34e-06/0.3218, allocations: 0 / 306.3 MB, free: 25.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.006637/0.3284, allocations: 2.427 MB / 308.8 MB, free: 24.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.3285, allocations: 114.3 kB / 308.9 MB, free: 24.1 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.3308, allocations: 1.195 MB / 310.1 MB, free: 23.6 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.3309, allocations: 35.92 kB / 310.1 MB, free: 23.56 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005326/0.3315, allocations: 0.8305 MB / 310.9 MB, free: 22.86 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002365/0.3317, allocations: 268.5 kB / 311.2 MB, free: 22.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.949e-05/0.3318, allocations: 25.06 kB / 311.2 MB, free: 22.64 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.198e-05/0.3319, allocations: 354.4 kB / 311.6 MB, free: 22.31 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008154/0.3327, allocations: 282.3 kB / 311.8 MB, free: 22.21 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.3338, allocations: 0.7472 MB / 312.6 MB, free: 21.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009819/0.3348, allocations: 402.9 kB / 313 MB, free: 21.3 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.59e-05/0.3348, allocations: 8.344 kB / 313 MB, free: 21.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003045/0.3379, allocations: 1.195 MB / 314.2 MB, free: 20.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.3379, allocations: 11 kB / 314.2 MB, free: 20.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.338, allocations: 17.97 kB / 314.2 MB, free: 20.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005721/0.3386, allocations: 140.1 kB / 314.3 MB, free: 20.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.3398, allocations: 252 kB / 314.6 MB, free: 20.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003928/0.3437, allocations: 4.333 MB / 318.9 MB, free: 16.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.345, allocations: 63.23 kB / 319 MB, free: 16.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.3452, allocations: 56.83 kB / 319 MB, free: 16.23 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (138): * Single equations (assignments): 135 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008302/0.3461, allocations: 354.5 kB / 319.4 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.3464, allocations: 137.8 kB / 319.5 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.3488, allocations: 0.8588 MB / 320.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.3489, allocations: 6.906 kB / 320.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.379e-06/0.3489, allocations: 5.5 kB / 320.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.3489, allocations: 3.984 kB / 320.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00498/0.3539, allocations: 2.287 MB / 322.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.644e-06/0.3539, allocations: 3.906 kB / 322.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.3548, allocations: 134.5 kB / 322.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005539/0.3553, allocations: 142 kB / 323 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.508e-05/0.3554, allocations: 19.86 kB / 323 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004496/0.3599, allocations: 4.475 MB / 327.5 MB, free: 9.285 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.166e-06/0.36, allocations: 7.859 kB / 327.5 MB, free: 9.281 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.3631, allocations: 1.32 MB / 328.8 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006243/0.3638, allocations: 268.8 kB / 329 MB, free: 8.215 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.364, allocations: 15.5 kB / 329.1 MB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007684/0.3648, allocations: 47.41 kB / 329.1 MB, free: 8.188 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.365, allocations: 61.17 kB / 329.2 MB, free: 8.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.297e-05/0.365, allocations: 25.17 kB / 329.2 MB, free: 8.145 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001307/0.3663, allocations: 0.7875 MB / 330 MB, free: 7.703 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.67e-07/0.3664, allocations: 0 / 330 MB, free: 7.703 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00163/0.368, allocations: 324.9 kB / 330.3 MB, free: 7.672 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000244/0.3683, allocations: 140.9 kB / 330.4 MB, free: 7.531 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.3705, allocations: 1.12 MB / 331.5 MB, free: 6.375 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3705, allocations: 4 kB / 331.6 MB, free: 6.371 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.3717, allocations: 0.6912 MB / 332.2 MB, free: 5.641 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.3736, allocations: 342.6 kB / 332.6 MB, free: 5.305 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.3797, allocations: 3.608 MB / 336.2 MB, free: 1.621 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007631/0.3805, allocations: 1.248 MB / 337.4 MB, free: 352 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/0.3809, allocations: 91.44 kB / 337.5 MB, free: 260 kB / 250.7 MB Notification: Performance of SimCode: time 1.474e-06/0.3809, allocations: 3.938 kB / 337.5 MB, free: 256 kB / 250.7 MB Notification: Performance of Templates: time 0.057/0.4379, allocations: 38.1 MB / 375.6 MB, free: 10.14 MB / 298.7 MB