Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|yRegStep|yRegStep_der",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadModel(ModelicaTest): time 1.964/1.964, allocations: 209.3 MB / 224.8 MB, free: 1.363 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004602/0.0004603, allocations: 16 kB / 282.5 MB, free: 9.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.0903, allocations: 48.71 MB / 331.2 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0006718/0.09102, allocations: 272.4 kB / 331.5 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002341/0.09128, allocations: 63.81 kB / 331.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.367e-05/0.09132, allocations: 0 / 331.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.171e-06/0.09134, allocations: 0 / 331.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.09153, allocations: 15.92 kB / 331.5 MB, free: 8.648 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.963e-05/0.09156, allocations: 4 kB / 331.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.34e-05/0.09161, allocations: 4 kB / 331.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.09166, allocations: 0 / 331.5 MB, free: 8.641 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.921e-05/0.09169, allocations: 7.984 kB / 331.5 MB, free: 8.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.538e-05/0.09174, allocations: 3.938 kB / 331.5 MB, free: 8.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.986e-06/0.09176, allocations: 3.938 kB / 331.6 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.579e-05/0.09184, allocations: 19.97 kB / 331.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.419e-06/0.09186, allocations: 4 kB / 331.6 MB, free: 8.602 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.267e-05/0.0919, allocations: 25.7 kB / 331.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 5.81e-05/0.09196, allocations: 7.984 kB / 331.6 MB, free: 8.562 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.09198, allocations: 4 kB / 331.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.092, allocations: 0 / 331.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.37e-06/0.09202, allocations: 0 / 331.6 MB, free: 8.559 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003292/0.09235, allocations: 319.4 kB / 331.9 MB, free: 8.199 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.0924, allocations: 8.031 kB / 331.9 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.09244, allocations: 4 kB / 331.9 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.0926, allocations: 163 kB / 332.1 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.09262, allocations: 0 / 332.1 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.09265, allocations: 0 / 332.1 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.426e-05/0.09276, allocations: 45.62 kB / 332.1 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.09278, allocations: 4 kB / 332.1 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.0928, allocations: 0 / 332.1 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.875e-06/0.09282, allocations: 0 / 332.1 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.84e-05/0.09287, allocations: 11.92 kB / 332.2 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.09307, allocations: 157.6 kB / 332.3 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.09327, allocations: 39.89 kB / 332.3 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004025/0.09369, allocations: 125.2 kB / 332.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.09373, allocations: 30.56 kB / 332.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 2.349e-06/0.09375, allocations: 0 / 332.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.001444/0.09521, allocations: 229.5 kB / 332.7 MB, free: 7.262 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.09527, allocations: 55.41 kB / 332.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.431e-05/0.09535, allocations: 89.86 kB / 332.9 MB, free: 7.098 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.09539, allocations: 25.83 kB / 332.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.181e-05/0.09548, allocations: 154.6 kB / 333 MB, free: 6.914 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.09552, allocations: 15.81 kB / 333.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.528e-06/0.09554, allocations: 0 / 333.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.0957, allocations: 310.8 kB / 333.4 MB, free: 6.586 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.09583, allocations: 27.97 kB / 333.4 MB, free: 6.559 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.09595, allocations: 23.98 kB / 333.4 MB, free: 6.535 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.09609, allocations: 23.98 kB / 333.4 MB, free: 6.512 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.251e-06/0.09611, allocations: 3.953 kB / 333.4 MB, free: 6.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002909/0.09641, allocations: 85.59 kB / 333.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.09645, allocations: 12 kB / 333.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.094e-06/0.09647, allocations: 0 / 333.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.09649, allocations: 0 / 333.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.09665, allocations: 16.23 kB / 333.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.812e-06/0.09668, allocations: 0 / 333.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.09679, allocations: 11.94 kB / 333.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.09682, allocations: 7.984 kB / 333.6 MB, free: 6.371 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.09693, allocations: 113.8 kB / 333.7 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.868e-05/0.09696, allocations: 7.953 kB / 333.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.09732, allocations: 101 kB / 333.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.461e-06/0.09735, allocations: 0 / 333.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.09736, allocations: 4 kB / 333.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.906e-06/0.09737, allocations: 0 / 333.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008811/0.09826, allocations: 371.3 kB / 334.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.09829, allocations: 0 / 334.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.09842, allocations: 19.98 kB / 334.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.514e-06/0.09844, allocations: 3.938 kB / 334.2 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.09846, allocations: 0 / 334.2 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.65e-06/0.09847, allocations: 0 / 334.2 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.611e-06/0.09849, allocations: 3.984 kB / 334.2 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003357/0.09883, allocations: 188.4 kB / 334.4 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.0989, allocations: 81.09 kB / 334.4 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.09893, allocations: 0 / 334.4 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.09908, allocations: 12 kB / 334.5 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.218e-05/0.09912, allocations: 7.922 kB / 334.5 MB, free: 5.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.09914, allocations: 4 kB / 334.5 MB, free: 5.359 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.764e-05/0.09921, allocations: 75.28 kB / 334.5 MB, free: 5.285 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.44e-07/0.09922, allocations: 0 / 334.5 MB, free: 5.285 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003164/0.09954, allocations: 12 kB / 334.6 MB, free: 5.273 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (5): * Single equations (assignments): 5 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001568/0.09971, allocations: 102.7 kB / 334.7 MB, free: 5.164 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002858/0.1, allocations: 56.05 kB / 334.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.849e-06/0.1, allocations: 0 / 334.7 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1002, allocations: 27.92 kB / 334.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001669/0.1003, allocations: 11.94 kB / 334.7 MB, free: 5.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005093/0.1009, allocations: 173.3 kB / 334.9 MB, free: 4.863 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.1012, allocations: 0.677 MB / 335.6 MB, free: 4.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.1013, allocations: 11.44 kB / 335.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of SimCode: time 1.375e-06/0.1013, allocations: 4 kB / 335.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of Templates: time 0.002388/0.1037, allocations: 0.6732 MB / 336.3 MB, free: 3.477 MB / 282.7 MB