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_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadModel(Modelica): time 1.594/1.594, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.635e-05/2.675e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2135, allocations: 38.78 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.3738, allocations: 84.02 MB / 351.6 MB, free: 5.285 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.3741, allocations: 79.95 kB / 351.7 MB, free: 5.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3098/0.6838, allocations: 23.91 MB / 375.6 MB, free: 71.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.002e-06/0.6839, allocations: 4 kB / 375.6 MB, free: 71.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.222e-05/0.6839, allocations: 16 kB / 375.6 MB, free: 71.19 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001597/0.6855, allocations: 1.017 MB / 376.6 MB, free: 70.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6856, allocations: 8.031 kB / 376.7 MB, free: 70.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005883/0.6862, allocations: 150.6 kB / 376.8 MB, free: 69.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.6875, allocations: 0.6703 MB / 377.5 MB, free: 69.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.6876, allocations: 58 kB / 377.5 MB, free: 69.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.6878, allocations: 88.56 kB / 377.6 MB, free: 69.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.6893, allocations: 0.7756 MB / 378.4 MB, free: 68.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.896e-05/0.6894, allocations: 11.95 kB / 378.4 MB, free: 68.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.313e-05/0.6895, allocations: 36 kB / 378.4 MB, free: 68.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.6895, allocations: 20 kB / 378.5 MB, free: 68.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/0.6906, allocations: 0.4959 MB / 379 MB, free: 67.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004728/0.6954, allocations: 3.512 MB / 382.5 MB, free: 64.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.6959, allocations: 215.2 kB / 382.7 MB, free: 63.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002016/0.6961, allocations: 100.8 kB / 382.8 MB, free: 63.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.6962, allocations: 4 kB / 382.8 MB, free: 63.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.6962, allocations: 38.5 kB / 382.8 MB, free: 63.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 3.504e-06/0.6962, allocations: 0 / 382.8 MB, free: 63.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001667/0.6979, allocations: 0.8489 MB / 383.7 MB, free: 62.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.6979, allocations: 77.11 kB / 383.7 MB, free: 62.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.699, allocations: 0.6763 MB / 384.4 MB, free: 61.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.6991, allocations: 29.7 kB / 384.4 MB, free: 61.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.6993, allocations: 0.5164 MB / 385 MB, free: 61.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.032e-05/0.6994, allocations: 114.4 kB / 385.1 MB, free: 61.31 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.674e-05/0.6995, allocations: 16 kB / 385.1 MB, free: 61.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.936e-05/0.6995, allocations: 334.8 kB / 385.4 MB, free: 60.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.6998, allocations: 117.5 kB / 385.5 MB, free: 60.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003645/0.7002, allocations: 391.5 kB / 385.9 MB, free: 60.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.7005, allocations: 187.8 kB / 386.1 MB, free: 60.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.677e-06/0.7006, allocations: 4 kB / 386.1 MB, free: 60.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001046/0.7016, allocations: 0.5298 MB / 386.6 MB, free: 59.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.7017, allocations: 11.98 kB / 386.6 MB, free: 59.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.7017, allocations: 12 kB / 386.7 MB, free: 59.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.7019, allocations: 28.86 kB / 386.7 MB, free: 59.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/0.7025, allocations: 151.7 kB / 386.8 MB, free: 59.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008514/0.7033, allocations: 1.28 MB / 388.1 MB, free: 57.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007407/0.7041, allocations: 48.05 kB / 388.2 MB, free: 57.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.856e-05/0.7042, allocations: 35.98 kB / 388.2 MB, free: 57.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.7043, allocations: 144.7 kB / 388.3 MB, free: 57.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.7044, allocations: 82.97 kB / 388.4 MB, free: 57.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006563/0.7051, allocations: 306.8 kB / 388.7 MB, free: 57.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.484e-06/0.7051, allocations: 7.953 kB / 388.7 MB, free: 57.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.736e-06/0.7051, allocations: 0 / 388.7 MB, free: 57.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.308e-06/0.7052, allocations: 0 / 388.7 MB, free: 57.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.707, allocations: 1.071 MB / 389.8 MB, free: 56.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.376e-06/0.707, allocations: 0 / 389.8 MB, free: 56.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.7074, allocations: 71.89 kB / 389.9 MB, free: 56.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.7076, allocations: 20.84 kB / 389.9 MB, free: 56.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.7076, allocations: 12.22 kB / 389.9 MB, free: 56.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008/0.7084, allocations: 1.276 MB / 391.2 MB, free: 54.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.7084, allocations: 4.156 kB / 391.2 MB, free: 54.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008593/0.7093, allocations: 0.6071 MB / 391.8 MB, free: 53.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003035/0.7096, allocations: 184.1 kB / 392 MB, free: 53.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.7098, allocations: 15.95 kB / 392 MB, free: 53.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004849/0.7103, allocations: 23.98 kB / 392 MB, free: 53.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.7104, allocations: 23.91 kB / 392 MB, free: 53.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.7104, allocations: 8 kB / 392 MB, free: 53.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008161/0.7112, allocations: 0.5226 MB / 392.6 MB, free: 53.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.69e-07/0.7112, allocations: 4 kB / 392.6 MB, free: 53.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009856/0.7122, allocations: 203.9 kB / 392.8 MB, free: 52.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004458/0.7127, allocations: 325.1 kB / 393.1 MB, free: 52.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.7135, allocations: 432.2 kB / 393.5 MB, free: 52.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.154e-06/0.7135, allocations: 0 / 393.5 MB, free: 52.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.7139, allocations: 224.1 kB / 393.7 MB, free: 52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.7151, allocations: 223.1 kB / 393.9 MB, free: 51.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.7172, allocations: 1.103 MB / 395 MB, free: 50.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.7177, allocations: 0.9648 MB / 396 MB, free: 49.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.7179, allocations: 59.42 kB / 396.1 MB, free: 49.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.359e-06/0.7179, allocations: 0 / 396.1 MB, free: 49.57 MB / 298.7 MB Notification: Performance of Templates: time 0.01979/0.7377, allocations: 14.84 MB / 410.9 MB, free: 34.75 MB / 298.7 MB