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/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.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.867/1.867, allocations: 209.3 MB / 224.8 MB, free: 1.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004398/0.00044, allocations: 8 kB / 282.6 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.08899, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4231, allocations: 74.43 MB / 405.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.4234, allocations: 63.97 kB / 405.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005938/0.4293, allocations: 1.444 MB / 407.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4294, allocations: 0 / 407.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.4294, allocations: 4 kB / 407.2 MB, free: 9.234 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.0006337/0.43, allocations: 390.9 kB / 407.6 MB, free: 8.805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4301, allocations: 8.031 kB / 407.6 MB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.4302, allocations: 15.89 kB / 407.6 MB, free: 8.781 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.4303, allocations: 171.7 kB / 407.8 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.4304, allocations: 5.688 kB / 407.8 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.4304, allocations: 15.98 kB / 407.8 MB, free: 8.555 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.4307, allocations: 85.64 kB / 407.9 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.296e-06/0.4307, allocations: 4 kB / 407.9 MB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.4307, allocations: 4 kB / 407.9 MB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.045e-06/0.4307, allocations: 0 / 407.9 MB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.4309, allocations: 47.97 kB / 407.9 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006789/0.4316, allocations: 328.7 kB / 408.3 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.4319, allocations: 94.47 kB / 408.4 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.432, allocations: 4 kB / 408.4 MB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002741/0.4322, allocations: 97.77 kB / 408.5 MB, free: 7.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.992e-06/0.4323, allocations: 0 / 408.5 MB, free: 7.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005848/0.4329, allocations: 197.6 kB / 408.7 MB, free: 7.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.4329, allocations: 55.41 kB / 408.7 MB, free: 7.562 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.4331, allocations: 120.8 kB / 408.8 MB, free: 7.438 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.4331, allocations: 33.7 kB / 408.9 MB, free: 7.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/0.4332, allocations: 154.6 kB / 409 MB, free: 7.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.554e-05/0.4333, allocations: 35.55 kB / 409 MB, free: 7.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.4333, allocations: 8 kB / 409 MB, free: 7.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4335, allocations: 322.7 kB / 409.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.4336, allocations: 36.16 kB / 409.4 MB, free: 6.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.4338, allocations: 73.52 kB / 409.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.434, allocations: 51.89 kB / 409.5 MB, free: 6.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.434, allocations: 3.828 kB / 409.5 MB, free: 6.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000411/0.4344, allocations: 153.6 kB / 409.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4345, allocations: 12.62 kB / 409.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.238e-06/0.4345, allocations: 0 / 409.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.4345, allocations: 4 kB / 409.7 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.4347, allocations: 19.98 kB / 409.7 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.584e-06/0.4347, allocations: 4 kB / 409.7 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.687e-05/0.4348, allocations: 18.23 kB / 409.7 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.4349, allocations: 7.984 kB / 409.7 MB, free: 6.48 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true 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 () * 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.0002079/0.4351, allocations: 141.4 kB / 409.9 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.827e-05/0.4351, allocations: 11.91 kB / 409.9 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.216e-05/0.4352, allocations: 12.5 kB / 409.9 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.112e-06/0.4352, allocations: 0 / 409.9 MB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.4352, allocations: 11.97 kB / 409.9 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.777e-06/0.4352, allocations: 0 / 409.9 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007894/0.436, allocations: 442.5 kB / 410.3 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.675e-06/0.436, allocations: 4 kB / 410.4 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.4361, allocations: 11.94 kB / 410.4 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.485e-06/0.4361, allocations: 0 / 410.4 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.4362, allocations: 3.984 kB / 410.4 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.354e-05/0.4362, allocations: 7.953 kB / 410.4 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.083e-06/0.4362, allocations: 0.875 kB / 410.4 MB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/0.4367, allocations: 264 kB / 410.6 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.4368, allocations: 89 kB / 410.7 MB, free: 5.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.4368, allocations: 4 kB / 410.7 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.437, allocations: 11.98 kB / 410.7 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.4371, allocations: 11.94 kB / 410.7 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.4371, allocations: 4 kB / 410.8 MB, free: 5.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.191e-05/0.4372, allocations: 95.27 kB / 410.8 MB, free: 5.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.93e-07/0.4372, allocations: 4 kB / 410.8 MB, free: 5.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003649/0.4376, allocations: 24 kB / 410.9 MB, free: 5.258 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) * 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.0001361/0.4377, allocations: 99.25 kB / 411 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003584/0.4381, allocations: 115.9 kB / 411.1 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.426e-06/0.4381, allocations: 4 kB / 411.1 MB, free: 5.035 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001696/0.4383, allocations: 68.2 kB / 411.2 MB, free: 4.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.4386, allocations: 8 kB / 411.2 MB, free: 4.961 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006061/0.4392, allocations: 255.5 kB / 411.4 MB, free: 4.672 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.4396, allocations: 0.7043 MB / 412.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.4397, allocations: 11.44 kB / 412.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of SimCode: time 1.391e-06/0.4397, allocations: 0 / 412.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of Templates: time 0.003299/0.443, allocations: 1.173 MB / 413.3 MB, free: 2.762 MB / 330.7 MB