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/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.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.675/1.675, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003479, allocations: 8 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06879/0.06917, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01047/0.07969, allocations: 6.621 MB / 278.5 MB, free: 5.555 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005655/0.08539, allocations: 2.578 MB / 281.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009888/0.08642, allocations: 23.94 kB / 281.2 MB, free: 2.945 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001586/0.08802, allocations: 477.7 kB / 281.6 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.08969, allocations: 0.4907 MB / 282.1 MB, free: 1.984 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.09027, allocations: 167.8 kB / 282.3 MB, free: 1.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002043/0.09233, allocations: 1.049 MB / 283.3 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008146/0.09317, allocations: 431.3 kB / 283.7 MB, free: 348 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007164/0.0939, allocations: 446.2 kB / 284.2 MB, free: 15.9 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007065/0.09462, allocations: 0.4976 MB / 284.7 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.09479, allocations: 64 kB / 284.7 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003597/0.09516, allocations: 99.98 kB / 284.8 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.09539, allocations: 195.2 kB / 285 MB, free: 15.05 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003132/0.09571, allocations: 261.1 kB / 285.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.09752, allocations: 1.34 MB / 286.6 MB, free: 13.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.144e-06/0.09755, allocations: 3.938 kB / 286.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.248e-06/0.09756, allocations: 0 / 286.6 MB, free: 13.44 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.09759, allocations: 0 / 286.6 MB, free: 13.44 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002596/0.1002, allocations: 1.282 MB / 287.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1003, allocations: 12.03 kB / 287.9 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006809/0.1009, allocations: 174.4 kB / 288.1 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/0.1026, allocations: 0.7191 MB / 288.8 MB, free: 11.16 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.177e-05/0.1027, allocations: 78 kB / 288.9 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.1029, allocations: 96 kB / 289 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/0.1051, allocations: 0.9347 MB / 289.9 MB, free: 10.03 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-05/0.1052, allocations: 15.84 kB / 289.9 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1053, allocations: 39.98 kB / 290 MB, free: 9.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.1054, allocations: 24 kB / 290 MB, free: 9.949 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.1073, allocations: 0.6559 MB / 290.6 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007405/0.1147, allocations: 3.934 MB / 294.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009745/0.1157, allocations: 455.6 kB / 295 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.1158, allocations: 8.625 kB / 295 MB, free: 4.652 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.1158, allocations: 38.56 kB / 295.1 MB, free: 4.605 MB / 250.7 MB Notification: Performance of pre-optimization done (n=41): time 3.662e-06/0.1159, allocations: 0 / 295.1 MB, free: 4.605 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003779/0.1196, allocations: 1.453 MB / 296.5 MB, free: 3.078 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.1197, allocations: 85.11 kB / 296.6 MB, free: 2.977 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.1212, allocations: 0.7865 MB / 297.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.424e-05/0.1213, allocations: 29.7 kB / 297.4 MB, free: 2.148 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005242/0.1219, allocations: 0.5745 MB / 298 MB, free: 1.566 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.122, allocations: 165.6 kB / 298.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.013e-05/0.1221, allocations: 16 kB / 298.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1223, allocations: 342.8 kB / 298.5 MB, free: 1.043 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.1228, allocations: 173.9 kB / 298.7 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007543/0.1236, allocations: 475.6 kB / 299.1 MB, free: 276 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/0.1243, allocations: 255.6 kB / 299.4 MB, free: 20 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.674e-06/0.1243, allocations: 4 kB / 299.4 MB, free: 16 kB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.1765/0.3008, allocations: 0.7047 MB / 300.1 MB, free: 29.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.3009, allocations: 11.94 kB / 300.1 MB, free: 29.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.3009, allocations: 10.19 kB / 300.1 MB, free: 29.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002945/0.3012, allocations: 77.67 kB / 300.2 MB, free: 29.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/0.3019, allocations: 160.4 kB / 300.4 MB, free: 29.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/0.3041, allocations: 2.803 MB / 303.2 MB, free: 26.86 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007647/0.3049, allocations: 40.09 kB / 303.2 MB, free: 26.86 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-05/0.305, allocations: 33.44 kB / 303.2 MB, free: 26.86 MB / 250.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 () * Number of clocked 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000504/0.3055, allocations: 268.8 kB / 303.5 MB, free: 26.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3057, allocations: 87.94 kB / 303.6 MB, free: 26.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.3069, allocations: 0.4945 MB / 304.1 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.3069, allocations: 5.781 kB / 304.1 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.381e-06/0.307, allocations: 3.516 kB / 304.1 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.307, allocations: 3.219 kB / 304.1 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/0.3099, allocations: 1.432 MB / 305.5 MB, free: 25.76 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.555e-06/0.31, allocations: 2.281 kB / 305.5 MB, free: 25.76 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.3104, allocations: 74.39 kB / 305.6 MB, free: 25.76 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002458/0.3107, allocations: 63.7 kB / 305.7 MB, free: 25.73 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.3107, allocations: 9.344 kB / 305.7 MB, free: 25.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002035/0.3128, allocations: 2.8 MB / 308.5 MB, free: 22.96 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/0.3128, allocations: 1.875 kB / 308.5 MB, free: 22.96 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.3145, allocations: 0.7988 MB / 309.3 MB, free: 22.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003994/0.3149, allocations: 192.8 kB / 309.5 MB, free: 22.41 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.3151, allocations: 13.53 kB / 309.5 MB, free: 22.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000535/0.3156, allocations: 34.33 kB / 309.5 MB, free: 22.39 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.3157, allocations: 34.48 kB / 309.5 MB, free: 22.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.3158, allocations: 15.72 kB / 309.5 MB, free: 22.38 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009446/0.3168, allocations: 0.5291 MB / 310.1 MB, free: 22.14 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-07/0.3168, allocations: 3.938 kB / 310.1 MB, free: 22.14 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001158/0.318, allocations: 205.8 kB / 310.3 MB, free: 22.12 MB / 250.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 () * Number of clocked 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002125/0.3182, allocations: 127.2 kB / 310.4 MB, free: 22.02 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3197, allocations: 0.7022 MB / 311.1 MB, free: 21.63 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.312e-06/0.3197, allocations: 1.438 kB / 311.1 MB, free: 21.63 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008084/0.3206, allocations: 443.6 kB / 311.5 MB, free: 21.34 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.3218, allocations: 200.2 kB / 311.7 MB, free: 21.27 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.3254, allocations: 2.182 MB / 313.9 MB, free: 19.88 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006705/0.3261, allocations: 1.038 MB / 315 MB, free: 19.16 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.3264, allocations: 59.58 kB / 315 MB, free: 19.15 MB / 250.7 MB Notification: Performance of SimCode: time 1.46e-06/0.3264, allocations: 1.375 kB / 315 MB, free: 19.15 MB / 250.7 MB Notification: Performance of Templates: time 0.02542/0.3518, allocations: 19.99 MB / 335 MB, free: 3.676 MB / 250.7 MB