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.214/2.214, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3.028e-05, allocations: 7.984 kB / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3209, allocations: 54.86 MB / 364.5 MB, free: 5.363 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.123/0.4439, allocations: 80.71 MB / 445.2 MB, free: 15.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.4442, allocations: 63.97 kB / 445.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006061/0.4502, allocations: 1.435 MB / 446.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.195e-06/0.4503, allocations: 0 / 446.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.4503, allocations: 8 kB / 446.7 MB, free: 14.15 MB / 378.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.0005986/0.451, allocations: 383.7 kB / 447.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.451, allocations: 8.031 kB / 447.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.4511, allocations: 11.89 kB / 447.1 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.4513, allocations: 172.7 kB / 447.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.4513, allocations: 11.98 kB / 447.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.4513, allocations: 8 kB / 447.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.4516, allocations: 81.66 kB / 447.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.791e-06/0.4516, allocations: 0 / 447.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.4516, allocations: 0 / 447.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.433e-06/0.4516, allocations: 3.953 kB / 447.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.4517, allocations: 32 kB / 447.4 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006863/0.4524, allocations: 336.6 kB / 447.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.4527, allocations: 82.56 kB / 447.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.4528, allocations: 36.86 kB / 447.9 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.4528, allocations: 0 / 447.9 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.4531, allocations: 96.17 kB / 448 MB, free: 12.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 4.822e-06/0.4531, allocations: 4 kB / 448 MB, free: 12.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003873/0.4535, allocations: 137.5 kB / 448.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.4536, allocations: 63.38 kB / 448.2 MB, free: 12.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.4537, allocations: 109.9 kB / 448.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.4538, allocations: 33.69 kB / 448.3 MB, free: 12.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.413e-05/0.4539, allocations: 154.8 kB / 448.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.4539, allocations: 35.61 kB / 448.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.454, allocations: 4 kB / 448.5 MB, free: 12.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4541, allocations: 320.9 kB / 448.8 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-05/0.4542, allocations: 28.38 kB / 448.9 MB, free: 11.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.4544, allocations: 72.77 kB / 448.9 MB, free: 11.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.4545, allocations: 45.23 kB / 449 MB, free: 11.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.694e-06/0.4545, allocations: 4 kB / 449 MB, free: 11.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003245/0.4549, allocations: 142.4 kB / 449.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.4549, allocations: 13.83 kB / 449.1 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.303e-06/0.4549, allocations: 0 / 449.1 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.4549, allocations: 4 kB / 449.1 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.4551, allocations: 23.92 kB / 449.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.4551, allocations: 0 / 449.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.4553, allocations: 27.98 kB / 449.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.4553, allocations: 4 kB / 449.2 MB, free: 11.49 MB / 378.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 () * 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.0001185/0.4554, allocations: 115.2 kB / 449.3 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.4555, allocations: 7.906 kB / 449.3 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.088e-05/0.4555, allocations: 16.64 kB / 449.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.4555, allocations: 0 / 449.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.4555, allocations: 13.75 kB / 449.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4556, allocations: 0 / 449.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006941/0.4563, allocations: 426.6 kB / 449.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.4563, allocations: 3.953 kB / 449.8 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.918e-05/0.4564, allocations: 15.92 kB / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.948e-06/0.4564, allocations: 0 / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.4564, allocations: 4 kB / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4565, allocations: 0 / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.746e-06/0.4565, allocations: 0 / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003772/0.4568, allocations: 240.9 kB / 450 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.787e-05/0.4569, allocations: 92.91 kB / 450.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.457, allocations: 7.984 kB / 450.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.4571, allocations: 8.875 kB / 450.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.4572, allocations: 11.98 kB / 450.1 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4572, allocations: 7.984 kB / 450.1 MB, free: 10.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.486e-05/0.4573, allocations: 91.59 kB / 450.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.4573, allocations: 0 / 450.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003719/0.4577, allocations: 28 kB / 450.3 MB, free: 10.32 MB / 378.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.0001427/0.4579, allocations: 107.1 kB / 450.4 MB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.4582, allocations: 92.75 kB / 450.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.723e-06/0.4582, allocations: 4 kB / 450.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.4583, allocations: 47.92 kB / 450.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.4586, allocations: 8 kB / 450.5 MB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004367/0.459, allocations: 164 kB / 450.7 MB, free: 9.875 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.4594, allocations: 0.6965 MB / 451.4 MB, free: 9.152 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.4595, allocations: 11.44 kB / 451.4 MB, free: 9.141 MB / 378.7 MB Notification: Performance of SimCode: time 1.926e-06/0.4595, allocations: 0 / 451.4 MB, free: 9.141 MB / 378.7 MB Notification: Performance of Templates: time 0.003241/0.4628, allocations: 1.18 MB / 452.6 MB, free: 7.973 MB / 378.7 MB