Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegStep") Notification: Performance of loadModel(ModelicaTest): time 2.161/2.161, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004353, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2785, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.0006645/0.2792, allocations: 272.3 kB / 369.4 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002296/0.2795, allocations: 59.81 kB / 369.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.2795, allocations: 3.938 kB / 369.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.526e-06/0.2796, allocations: 0 / 369.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.2798, allocations: 11.94 kB / 369.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.343e-05/0.2798, allocations: 7.984 kB / 369.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.501e-05/0.2798, allocations: 3.984 kB / 369.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.2799, allocations: 0 / 369.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.2799, allocations: 11.94 kB / 369.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.699e-05/0.28, allocations: 4 kB / 369.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.28, allocations: 3.938 kB / 369.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.782e-05/0.2801, allocations: 23.97 kB / 369.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.972e-06/0.2801, allocations: 3.984 kB / 369.6 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.798e-05/0.2801, allocations: 25.7 kB / 369.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.782e-05/0.2802, allocations: 7.984 kB / 369.6 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.523e-06/0.2802, allocations: 0 / 369.6 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.797e-06/0.2802, allocations: 0 / 369.6 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.22e-06/0.2803, allocations: 0 / 369.6 MB, free: 10.27 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000338/0.2806, allocations: 324.5 kB / 369.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2806, allocations: 8.031 kB / 369.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.632e-05/0.2807, allocations: 7.953 kB / 369.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.2808, allocations: 163.1 kB / 370.1 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.2809, allocations: 0 / 370.1 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.2809, allocations: 0 / 370.1 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.707e-05/0.281, allocations: 31.8 kB / 370.1 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.281, allocations: 7.938 kB / 370.1 MB, free: 9.648 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.281, allocations: 4 kB / 370.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.376e-06/0.2811, allocations: 0 / 370.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.754e-05/0.2811, allocations: 15.94 kB / 370.2 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.2813, allocations: 153.7 kB / 370.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.2815, allocations: 30.58 kB / 370.3 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003977/0.2819, allocations: 129.1 kB / 370.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.282, allocations: 30.56 kB / 370.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 5.563e-06/0.282, allocations: 0 / 370.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.001411/0.2834, allocations: 218.3 kB / 370.7 MB, free: 8.988 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.2835, allocations: 55.41 kB / 370.8 MB, free: 8.922 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.665e-05/0.2836, allocations: 101.7 kB / 370.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2836, allocations: 25.7 kB / 370.9 MB, free: 8.781 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.2837, allocations: 150.6 kB / 371 MB, free: 8.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/0.2837, allocations: 19.75 kB / 371.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-06/0.2838, allocations: 3.938 kB / 371.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2839, allocations: 315 kB / 371.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2841, allocations: 23.98 kB / 371.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.2842, allocations: 23.97 kB / 371.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001077/0.2843, allocations: 32.11 kB / 371.4 MB, free: 8.215 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.766e-06/0.2843, allocations: 4 kB / 371.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002858/0.2846, allocations: 77.67 kB / 371.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.2847, allocations: 8 kB / 371.5 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.832e-06/0.2847, allocations: 0 / 371.5 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2847, allocations: 0 / 371.5 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.2849, allocations: 23.92 kB / 371.6 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.091e-06/0.2849, allocations: 3.984 kB / 371.6 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.285, allocations: 7.984 kB / 371.6 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.664e-05/0.285, allocations: 7.953 kB / 371.6 MB, free: 8.078 MB / 298.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 9.88e-05/0.2851, allocations: 109.8 kB / 371.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.2852, allocations: 7.984 kB / 371.7 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003461/0.2855, allocations: 93.22 kB / 371.8 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.75e-06/0.2855, allocations: 0 / 371.8 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.663e-06/0.2855, allocations: 0 / 371.8 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.964e-06/0.2856, allocations: 0 / 371.8 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009586/0.2865, allocations: 379.2 kB / 372.2 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.177e-06/0.2865, allocations: 0 / 372.2 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.2867, allocations: 24.02 kB / 372.2 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.2867, allocations: 3.938 kB / 372.2 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.2868, allocations: 4 kB / 372.2 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2868, allocations: 0 / 372.2 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.2868, allocations: 3.953 kB / 372.2 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003431/0.2872, allocations: 184.6 kB / 372.4 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.286e-05/0.2872, allocations: 77.11 kB / 372.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.2873, allocations: 11.98 kB / 372.5 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.2874, allocations: 8 kB / 372.5 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.153e-05/0.2875, allocations: 3.953 kB / 372.5 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.2875, allocations: 7.984 kB / 372.5 MB, free: 7.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.793e-05/0.2875, allocations: 79.28 kB / 372.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.593e-06/0.2876, allocations: 0 / 372.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003292/0.2879, allocations: 11.94 kB / 372.6 MB, free: 6.98 MB / 298.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.0001635/0.2881, allocations: 111.2 kB / 372.7 MB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002766/0.2884, allocations: 56.05 kB / 372.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.848e-06/0.2884, allocations: 0 / 372.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2885, allocations: 27.92 kB / 372.8 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001609/0.2887, allocations: 4 kB / 372.8 MB, free: 6.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005103/0.2892, allocations: 177.3 kB / 372.9 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.2896, allocations: 0.677 MB / 373.6 MB, free: 5.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.526e-05/0.2896, allocations: 11.44 kB / 373.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of SimCode: time 1.263e-06/0.2897, allocations: 0 / 373.6 MB, free: 5.852 MB / 298.7 MB Notification: Performance of Templates: time 0.002345/0.292, allocations: 0.6649 MB / 374.3 MB, free: 5.188 MB / 298.7 MB