Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 1.914/1.914, allocations: 209.4 MB / 217.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.474e-05/1.489e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 48.69 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.3697, allocations: 73.68 MB / 393.7 MB, free: 6.785 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.37, allocations: 67.91 kB / 393.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005607/0.3756, allocations: 1.426 MB / 395.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3756, allocations: 0 / 395.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.3757, allocations: 0 / 395.2 MB, free: 5.285 MB / 330.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.0005927/0.3763, allocations: 386.2 kB / 395.6 MB, free: 4.863 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3763, allocations: 8.031 kB / 395.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.878e-05/0.3764, allocations: 7.906 kB / 395.6 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.3766, allocations: 182.9 kB / 395.7 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3766, allocations: 0 / 395.7 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.3766, allocations: 8 kB / 395.8 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001225/0.3768, allocations: 32.12 kB / 395.8 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.3769, allocations: 70.78 kB / 395.9 MB, free: 4.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.203e-06/0.377, allocations: 4 kB / 395.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.377, allocations: 4 kB / 395.9 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.641e-06/0.377, allocations: 4 kB / 395.9 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.3776, allocations: 301.2 kB / 396.2 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.3778, allocations: 82.55 kB / 396.2 MB, free: 4.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.638e-05/0.3779, allocations: 36.8 kB / 396.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.378, allocations: 7.938 kB / 396.3 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.3782, allocations: 87.38 kB / 396.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.585e-06/0.3782, allocations: 0 / 396.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003832/0.3786, allocations: 130.6 kB / 396.5 MB, free: 3.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.3786, allocations: 55.39 kB / 396.5 MB, free: 3.738 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.3788, allocations: 113.1 kB / 396.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.3788, allocations: 29.7 kB / 396.7 MB, free: 3.586 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.625e-05/0.3789, allocations: 166.4 kB / 396.9 MB, free: 3.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.379, allocations: 43.53 kB / 396.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-06/0.379, allocations: 0 / 396.9 MB, free: 3.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3792, allocations: 318.8 kB / 397.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.715e-05/0.3793, allocations: 24.19 kB / 397.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.3794, allocations: 75.75 kB / 397.3 MB, free: 2.945 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.3795, allocations: 35.98 kB / 397.3 MB, free: 2.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.142e-06/0.3795, allocations: 0 / 397.3 MB, free: 2.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002923/0.3798, allocations: 121.5 kB / 397.5 MB, free: 2.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3799, allocations: 4 kB / 397.5 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.805e-06/0.3799, allocations: 4 kB / 397.5 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3799, allocations: 160 / 397.5 MB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3801, allocations: 27.92 kB / 397.5 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.085e-06/0.3801, allocations: 7.938 kB / 397.5 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.876e-05/0.3802, allocations: 11.89 kB / 397.5 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.3802, allocations: 12 kB / 397.5 MB, free: 2.719 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean 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 () * 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.0001585/0.3804, allocations: 122.4 kB / 397.6 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.3804, allocations: 7.906 kB / 397.7 MB, free: 2.586 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/0.3805, allocations: 16.75 kB / 397.7 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.475e-06/0.3805, allocations: 0 / 397.7 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.229e-06/0.3805, allocations: 0 / 397.7 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.056e-06/0.3805, allocations: 3.984 kB / 397.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.3811, allocations: 403.7 kB / 398.1 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.043e-06/0.3812, allocations: 0 / 398.1 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.292e-05/0.3813, allocations: 15.98 kB / 398.1 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.026e-06/0.3813, allocations: 0 / 398.1 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.3813, allocations: 4 kB / 398.1 MB, free: 2.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.658e-06/0.3813, allocations: 4 kB / 398.1 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.451e-06/0.3813, allocations: 0 / 398.1 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.3817, allocations: 240.4 kB / 398.3 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.3818, allocations: 89 kB / 398.4 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.3818, allocations: 11.92 kB / 398.4 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.382, allocations: 8 kB / 398.4 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.3821, allocations: 15.98 kB / 398.4 MB, free: 1.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3821, allocations: 3.984 kB / 398.4 MB, free: 1.715 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.3822, allocations: 91.28 kB / 398.5 MB, free: 1.625 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.03e-07/0.3822, allocations: 0 / 398.5 MB, free: 1.625 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.3825, allocations: 16 kB / 398.6 MB, free: 1.609 MB / 330.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) * 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.0001311/0.3827, allocations: 103.2 kB / 398.7 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002383/0.3829, allocations: 80.75 kB / 398.7 MB, free: 1.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.985e-06/0.383, allocations: 0 / 398.7 MB, free: 1.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.3831, allocations: 48.25 kB / 398.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.3833, allocations: 15.94 kB / 398.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004336/0.3838, allocations: 152.1 kB / 398.9 MB, free: 1.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.3842, allocations: 0.6963 MB / 399.6 MB, free: 464 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.943e-05/0.3842, allocations: 19.36 kB / 399.7 MB, free: 444 kB / 330.7 MB Notification: Performance of SimCode: time 1.333e-06/0.3842, allocations: 0 / 399.7 MB, free: 444 kB / 330.7 MB Notification: Performance of Templates: time 0.003108/0.3874, allocations: 1.165 MB / 400.8 MB, free: 15.27 MB / 346.7 MB