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.835/1.835, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.37e-05/3.373e-05, allocations: 11.98 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08678, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4101/0.4969, allocations: 74.34 MB / 400.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.4971, allocations: 64.09 kB / 400.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005252/0.5024, allocations: 1.438 MB / 402.4 MB, free: 9.273 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.897e-06/0.5024, allocations: 0 / 402.4 MB, free: 9.273 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.821e-06/0.5025, allocations: 0 / 402.4 MB, free: 9.273 MB / 314.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.0004336/0.5029, allocations: 380 kB / 402.7 MB, free: 8.898 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.503, allocations: 11.44 kB / 402.8 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.503, allocations: 7.781 kB / 402.8 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.262e-05/0.5031, allocations: 174.2 kB / 402.9 MB, free: 8.691 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.5032, allocations: 3.625 kB / 402.9 MB, free: 8.691 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.5032, allocations: 11.16 kB / 403 MB, free: 8.691 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.5034, allocations: 85.97 kB / 403 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.685e-06/0.5034, allocations: 4.984 kB / 403 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.5034, allocations: 3.812 kB / 403 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-06/0.5034, allocations: 3.375 kB / 403 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/0.5035, allocations: 29.31 kB / 403.1 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005175/0.5041, allocations: 333.4 kB / 403.4 MB, free: 8.324 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.5043, allocations: 94 kB / 403.5 MB, free: 8.289 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.81e-05/0.5044, allocations: 41.83 kB / 403.5 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.5044, allocations: 3.875 kB / 403.5 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.5046, allocations: 85.91 kB / 403.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.769e-06/0.5046, allocations: 0 / 403.6 MB, free: 8.219 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003382/0.5049, allocations: 143.3 kB / 403.8 MB, free: 8.168 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.505, allocations: 51.41 kB / 403.8 MB, free: 8.105 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.615e-05/0.5051, allocations: 121.4 kB / 403.9 MB, free: 8.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.5051, allocations: 32.67 kB / 404 MB, free: 7.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.5052, allocations: 157.7 kB / 404.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.5052, allocations: 43.97 kB / 404.2 MB, free: 7.793 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-06/0.5052, allocations: 3 kB / 404.2 MB, free: 7.793 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.5053, allocations: 323.8 kB / 404.5 MB, free: 7.473 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.29e-05/0.5054, allocations: 28.5 kB / 404.5 MB, free: 7.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.891e-05/0.5055, allocations: 69.69 kB / 404.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.588e-05/0.5056, allocations: 33.05 kB / 404.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.022e-06/0.5056, allocations: 0 / 404.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002695/0.5059, allocations: 153.4 kB / 404.8 MB, free: 7.355 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.5059, allocations: 7.844 kB / 404.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.904e-06/0.5059, allocations: 3.812 kB / 404.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.506, allocations: 3.812 kB / 404.8 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.5061, allocations: 23.23 kB / 404.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.202e-06/0.5061, allocations: 0 / 404.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.268e-05/0.5062, allocations: 19.17 kB / 404.8 MB, free: 7.336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.5063, allocations: 3.812 kB / 404.8 MB, free: 7.336 MB / 314.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.0001153/0.5064, allocations: 129.1 kB / 404.9 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.475e-05/0.5064, allocations: 11.64 kB / 405 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.5065, allocations: 14.34 kB / 405 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.771e-06/0.5065, allocations: 0 / 405 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.165e-06/0.5065, allocations: 0 / 405 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.513e-06/0.5065, allocations: 0 / 405 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005294/0.5071, allocations: 434.8 kB / 405.4 MB, free: 6.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.692e-06/0.5071, allocations: 4 kB / 405.4 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.403e-05/0.5072, allocations: 11.67 kB / 405.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.317e-06/0.5072, allocations: 0 / 405.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.5072, allocations: 0 / 405.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.998e-06/0.5072, allocations: 3.844 kB / 405.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.629e-06/0.5073, allocations: 3.953 kB / 405.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.5076, allocations: 243.2 kB / 405.7 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.887e-05/0.5076, allocations: 92.75 kB / 405.7 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.254e-05/0.5077, allocations: 18.58 kB / 405.8 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.5078, allocations: 7.828 kB / 405.8 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.5079, allocations: 19.59 kB / 405.8 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.5079, allocations: 3.906 kB / 405.8 MB, free: 6.574 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.497e-05/0.508, allocations: 91.36 kB / 405.9 MB, free: 6.496 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.9e-07/0.508, allocations: 0 / 405.9 MB, free: 6.496 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000335/0.5083, allocations: 22.44 kB / 405.9 MB, free: 6.496 MB / 314.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 9.74e-05/0.5085, allocations: 109.3 kB / 406 MB, free: 6.398 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.5087, allocations: 91.62 kB / 406.1 MB, free: 6.391 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.592e-06/0.5087, allocations: 0 / 406.1 MB, free: 6.391 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.5088, allocations: 49.11 kB / 406.1 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.5091, allocations: 11.78 kB / 406.2 MB, free: 6.379 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.5095, allocations: 159.5 kB / 406.3 MB, free: 6.254 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.5096, allocations: 0.7039 MB / 407 MB, free: 5.543 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.5097, allocations: 11.31 kB / 407 MB, free: 5.535 MB / 314.7 MB Notification: Performance of SimCode: time 2.682e-06/0.5097, allocations: 0 / 407 MB, free: 5.535 MB / 314.7 MB Notification: Performance of Templates: time 0.002687/0.5124, allocations: 1.18 MB / 408.2 MB, free: 4.957 MB / 314.7 MB