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.837/1.837, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07963/0.08, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01558/0.09563, allocations: 9.36 MB / 282 MB, free: 2.129 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007654/0.1033, allocations: 3.117 MB / 285.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.1049, allocations: 35.88 kB / 285.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.1072, allocations: 0.5091 MB / 285.7 MB, free: 14.46 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.1104, allocations: 0.7167 MB / 286.4 MB, free: 13.74 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.1117, allocations: 235.8 kB / 286.6 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004145/0.1159, allocations: 1.557 MB / 288.2 MB, free: 11.95 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001606/0.1176, allocations: 0.6869 MB / 288.8 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.1189, allocations: 0.6419 MB / 289.5 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00156/0.1205, allocations: 0.7116 MB / 290.2 MB, free: 9.879 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003977/0.1209, allocations: 96 kB / 290.3 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007157/0.1217, allocations: 136 kB / 290.4 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003126/0.122, allocations: 270.8 kB / 290.7 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000585/0.1226, allocations: 388.8 kB / 291.1 MB, free: 9 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003337/0.126, allocations: 2.053 MB / 293.1 MB, free: 6.941 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.126, allocations: 0 / 293.1 MB, free: 6.941 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.008e-06/0.126, allocations: 0 / 293.1 MB, free: 6.941 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.557e-05/0.1261, allocations: 0 / 293.1 MB, free: 6.941 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00578/0.1319, allocations: 1.752 MB / 294.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/0.132, allocations: 8.031 kB / 294.9 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002047/0.1341, allocations: 245.6 kB / 295.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004656/0.1388, allocations: 1.012 MB / 296.1 MB, free: 3.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.1391, allocations: 115.1 kB / 296.2 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005475/0.1397, allocations: 155.9 kB / 296.4 MB, free: 3.555 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006537/0.1462, allocations: 1.464 MB / 297.9 MB, free: 2.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001169/0.1464, allocations: 15.89 kB / 297.9 MB, free: 2 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003041/0.1467, allocations: 60 kB / 297.9 MB, free: 1.941 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-05/0.1468, allocations: 40 kB / 298 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005477/0.1523, allocations: 0.9707 MB / 298.9 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2498/0.4022, allocations: 6.507 MB / 305.5 MB, free: 26.19 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.4036, allocations: 408.4 kB / 305.9 MB, free: 26.03 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.204e-05/0.4037, allocations: 9.891 kB / 305.9 MB, free: 26.03 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007594/0.4045, allocations: 279 kB / 306.1 MB, free: 25.88 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 3.226e-06/0.4045, allocations: 0 / 306.1 MB, free: 25.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.0049/0.4094, allocations: 1.78 MB / 307.9 MB, free: 24.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.4095, allocations: 164.9 kB / 308.1 MB, free: 24.58 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002419/0.4119, allocations: 1.191 MB / 309.3 MB, free: 24.08 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.4121, allocations: 40.52 kB / 309.3 MB, free: 24.04 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007982/0.4129, allocations: 0.8675 MB / 310.2 MB, free: 23.35 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.4132, allocations: 206.8 kB / 310.4 MB, free: 23.2 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.116e-05/0.4132, allocations: 25.09 kB / 310.4 MB, free: 23.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.4133, allocations: 350.8 kB / 310.7 MB, free: 22.86 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007732/0.4141, allocations: 231.8 kB / 311 MB, free: 22.78 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.4152, allocations: 0.7985 MB / 311.8 MB, free: 21.92 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009958/0.4162, allocations: 402.7 kB / 312.2 MB, free: 21.71 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.4162, allocations: 5.125 kB / 312.2 MB, free: 21.71 MB / 250.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003038/0.4193, allocations: 1.169 MB / 313.3 MB, free: 21.18 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-05/0.4194, allocations: 45.58 kB / 313.4 MB, free: 21.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.718e-05/0.4194, allocations: 23.03 kB / 313.4 MB, free: 21.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003162/0.4198, allocations: 68.73 kB / 313.5 MB, free: 21.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.4213, allocations: 268.1 kB / 313.7 MB, free: 21.08 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/0.4233, allocations: 2.593 MB / 316.3 MB, free: 18.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.425, allocations: 74.12 kB / 316.4 MB, free: 18.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003106/0.4254, allocations: 59.47 kB / 316.5 MB, free: 18.41 MB / 250.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 (146): * Single equations (assignments): 143 * 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.001553/0.427, allocations: 355.8 kB / 316.8 MB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004606/0.4275, allocations: 139.3 kB / 316.9 MB, free: 18.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.4294, allocations: 0.5597 MB / 317.5 MB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.4295, allocations: 0 / 317.5 MB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.4295, allocations: 0 / 317.5 MB, free: 17.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000704/0.4302, allocations: 238.1 kB / 317.7 MB, free: 17.62 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003478/0.4306, allocations: 11.59 kB / 317.7 MB, free: 17.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009223/0.4315, allocations: 40.25 kB / 317.8 MB, free: 17.6 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.4317, allocations: 39.39 kB / 317.8 MB, free: 17.59 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00201/0.4338, allocations: 0.5909 MB / 318.4 MB, free: 17.27 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002085/0.4359, allocations: 0.8835 MB / 319.3 MB, free: 16.71 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005345/0.4365, allocations: 181.2 kB / 319.5 MB, free: 16.62 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.4379, allocations: 0.779 MB / 320.3 MB, free: 16.18 MB / 250.7 MB Notification: Performance of Backend: time 5.51e-07/0.4379, allocations: 0 / 320.3 MB, free: 16.18 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.4402, allocations: 0.8795 MB / 321.1 MB, free: 15.59 MB / 250.7 MB Notification: Performance of SimCode: time 0.006517/0.4468, allocations: 3.674 MB / 324.8 MB, free: 12.95 MB / 250.7 MB Notification: Performance of Templates: time 0.03823/0.485, allocations: 13.54 MB / 338.3 MB, free: 0.582 MB / 250.7 MB