Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold.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.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.354/2.354, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004538/0.000454, allocations: 16 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2726, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001992/0.2746, allocations: 1.196 MB / 370.4 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.2757, allocations: 0.4899 MB / 370.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.404e-05/0.2757, allocations: 3.938 kB / 370.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.2757, allocations: 0 / 370.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.191e-05/0.2759, allocations: 15.97 kB / 370.9 MB, free: 8.969 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.276, allocations: 31.84 kB / 370.9 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.2762, allocations: 55.92 kB / 371 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.584e-05/0.2763, allocations: 7.984 kB / 371 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.2764, allocations: 35.84 kB / 371 MB, free: 8.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.804e-05/0.2765, allocations: 35.84 kB / 371.1 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.2766, allocations: 4 kB / 371.1 MB, free: 8.801 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.881e-05/0.2766, allocations: 4 kB / 371.1 MB, free: 8.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.632e-05/0.2766, allocations: 15.98 kB / 371.1 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.2767, allocations: 45.62 kB / 371.1 MB, free: 8.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.757e-05/0.2768, allocations: 43.91 kB / 371.2 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.449e-06/0.2768, allocations: 0 / 371.2 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.2768, allocations: 0 / 371.2 MB, free: 8.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.34e-06/0.2768, allocations: 0 / 371.2 MB, free: 8.688 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006979/0.2775, allocations: 399.7 kB / 371.6 MB, free: 8.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.2776, allocations: 8.031 kB / 371.6 MB, free: 8.242 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/0.2777, allocations: 7.906 kB / 371.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.2778, allocations: 182.8 kB / 371.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.2779, allocations: 4 kB / 371.8 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.2779, allocations: 12 kB / 371.8 MB, free: 8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002457/0.2782, allocations: 81.64 kB / 371.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.236e-06/0.2782, allocations: 4 kB / 371.8 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.2782, allocations: 7.953 kB / 371.9 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.359e-06/0.2782, allocations: 0 / 371.9 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.2784, allocations: 51.97 kB / 371.9 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006542/0.2791, allocations: 324.7 kB / 372.2 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.2794, allocations: 98.47 kB / 372.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.2794, allocations: 0 / 372.3 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.2797, allocations: 103.2 kB / 372.4 MB, free: 7.266 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.58e-06/0.2797, allocations: 0 / 372.4 MB, free: 7.266 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005956/0.2803, allocations: 198.1 kB / 372.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.2804, allocations: 55.41 kB / 372.7 MB, free: 7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2805, allocations: 121.9 kB / 372.8 MB, free: 6.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.2806, allocations: 33.7 kB / 372.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.2807, allocations: 154.8 kB / 373 MB, free: 6.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.2808, allocations: 43.53 kB / 373 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.854e-06/0.2808, allocations: 4 kB / 373 MB, free: 6.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.281, allocations: 314.8 kB / 373.3 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.2811, allocations: 40.34 kB / 373.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.2813, allocations: 73.89 kB / 373.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.2814, allocations: 55.92 kB / 373.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.993e-06/0.2815, allocations: 0 / 373.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000399/0.2819, allocations: 161.8 kB / 373.6 MB, free: 5.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2819, allocations: 11.95 kB / 373.7 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2819, allocations: 0 / 373.7 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2819, allocations: 4 kB / 373.7 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.2821, allocations: 20.36 kB / 373.7 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.684e-06/0.2821, allocations: 3.938 kB / 373.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.824e-05/0.2822, allocations: 12 kB / 373.7 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.2822, allocations: 7.984 kB / 373.7 MB, free: 5.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001433/0.2824, allocations: 132 kB / 373.8 MB, free: 5.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.2824, allocations: 7.906 kB / 373.8 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.2825, allocations: 16.45 kB / 373.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.981e-06/0.2825, allocations: 0 / 373.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2825, allocations: 0 / 373.9 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.371e-06/0.2825, allocations: 3.984 kB / 373.9 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007668/0.2833, allocations: 450.4 kB / 374.3 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.111e-06/0.2833, allocations: 8 kB / 374.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.2834, allocations: 4 kB / 374.3 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.16e-06/0.2834, allocations: 4 kB / 374.3 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.2835, allocations: 11.98 kB / 374.3 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.842e-06/0.2835, allocations: 3.938 kB / 374.3 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.638e-06/0.2835, allocations: 0 / 374.3 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.284, allocations: 255.4 kB / 374.6 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.284, allocations: 88.97 kB / 374.7 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.2841, allocations: 0 / 374.7 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.2842, allocations: 15.98 kB / 374.7 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.2843, allocations: 7.984 kB / 374.7 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.2843, allocations: 7.938 kB / 374.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.644e-05/0.2844, allocations: 91.27 kB / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.2844, allocations: 0 / 374.8 MB, free: 4.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003457/0.2848, allocations: 24 kB / 374.8 MB, free: 4.699 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001417/0.285, allocations: 119.1 kB / 374.9 MB, free: 4.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003342/0.2853, allocations: 99.89 kB / 375 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2853, allocations: 0 / 375 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.2855, allocations: 64.22 kB / 375.1 MB, free: 4.414 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.2857, allocations: 8 kB / 375.1 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005944/0.2864, allocations: 247.1 kB / 375.3 MB, free: 4.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.2868, allocations: 0.7005 MB / 376 MB, free: 3.406 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.2868, allocations: 19.42 kB / 376.1 MB, free: 3.387 MB / 298.7 MB Notification: Performance of SimCode: time 1.372e-06/0.2868, allocations: 288 / 376.1 MB, free: 3.387 MB / 298.7 MB Notification: Performance of Templates: time 0.003219/0.2901, allocations: 1.161 MB / 377.2 MB, free: 2.227 MB / 298.7 MB