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.832/1.832, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000728/0.0007282, allocations: 11.98 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.295, allocations: 48.71 MB / 331.2 MB, free: 6.465 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001604/0.2966, allocations: 1.189 MB / 332.4 MB, free: 5.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008228/0.2975, allocations: 485 kB / 332.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.687e-05/0.2975, allocations: 1.562 kB / 332.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.671e-05/0.2976, allocations: 9.297 kB / 332.9 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.451e-05/0.2977, allocations: 10.95 kB / 332.9 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.2978, allocations: 33.22 kB / 332.9 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.292e-05/0.298, allocations: 48.58 kB / 333 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.2981, allocations: 10.72 kB / 333 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.2982, allocations: 36.38 kB / 333 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.718e-05/0.2983, allocations: 35.98 kB / 333 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.2983, allocations: 2.75 kB / 333 MB, free: 5.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.815e-05/0.2984, allocations: 8.531 kB / 333 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.923e-05/0.2984, allocations: 19.33 kB / 333.1 MB, free: 5.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.131e-05/0.2984, allocations: 37.2 kB / 333.1 MB, free: 5.398 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.2986, allocations: 52.33 kB / 333.1 MB, free: 5.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.117e-06/0.2986, allocations: 0 / 333.1 MB, free: 5.383 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.381e-06/0.2986, allocations: 0 / 333.1 MB, free: 5.383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.243e-06/0.2986, allocations: 1.031 kB / 333.1 MB, free: 5.383 MB / 266.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.0005867/0.2992, allocations: 391 kB / 333.5 MB, free: 5.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2993, allocations: 8.938 kB / 333.5 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.301e-05/0.2993, allocations: 9.219 kB / 333.5 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.2994, allocations: 185.8 kB / 333.7 MB, free: 4.789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.2995, allocations: 7.422 kB / 333.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.2995, allocations: 7.344 kB / 333.7 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.2997, allocations: 87.41 kB / 333.8 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2998, allocations: 0 / 333.8 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.2998, allocations: 6.297 kB / 333.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.516e-06/0.2998, allocations: 2.25 kB / 333.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.3, allocations: 46.59 kB / 333.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.3006, allocations: 338.4 kB / 334.2 MB, free: 4.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.3008, allocations: 89.22 kB / 334.3 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.3009, allocations: 1.625 kB / 334.3 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3011, allocations: 100.4 kB / 334.4 MB, free: 4.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.922e-06/0.3011, allocations: 7.938 kB / 334.4 MB, free: 4.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005457/0.3017, allocations: 190.8 kB / 334.6 MB, free: 4.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.3018, allocations: 60.25 kB / 334.7 MB, free: 4.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.973e-05/0.3019, allocations: 122 kB / 334.8 MB, free: 4.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3019, allocations: 34.8 kB / 334.8 MB, free: 4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.178e-05/0.302, allocations: 158.5 kB / 335 MB, free: 3.844 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.986e-05/0.302, allocations: 36.61 kB / 335 MB, free: 3.816 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.579e-06/0.302, allocations: 5.281 kB / 335 MB, free: 3.812 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.492e-05/0.3021, allocations: 318.8 kB / 335.3 MB, free: 3.496 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3022, allocations: 33.02 kB / 335.3 MB, free: 3.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3024, allocations: 77.86 kB / 335.4 MB, free: 3.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.3025, allocations: 52.34 kB / 335.5 MB, free: 3.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.628e-06/0.3025, allocations: 1.344 kB / 335.5 MB, free: 3.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003638/0.3029, allocations: 157.9 kB / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3029, allocations: 7.094 kB / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.926e-06/0.303, allocations: 1.312 kB / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.303, allocations: 2.781 kB / 335.6 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3031, allocations: 24.58 kB / 335.7 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.3032, allocations: 6.234 kB / 335.7 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.718e-05/0.3033, allocations: 14.28 kB / 335.7 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.3033, allocations: 6.719 kB / 335.7 MB, free: 3.309 MB / 266.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.0001413/0.3034, allocations: 134.6 kB / 335.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.661e-05/0.3035, allocations: 9.234 kB / 335.8 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.3035, allocations: 15.7 kB / 335.8 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.121e-06/0.3035, allocations: 5.281 kB / 335.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.165e-06/0.3036, allocations: 1.438 kB / 335.9 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.905e-06/0.3036, allocations: 4.984 kB / 335.9 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006571/0.3042, allocations: 447.2 kB / 336.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.162e-06/0.3043, allocations: 0 / 336.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.166e-05/0.3043, allocations: 13.19 kB / 336.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.966e-06/0.3044, allocations: 5.984 kB / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.3044, allocations: 2.484 kB / 336.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.924e-06/0.3044, allocations: 6.203 kB / 336.3 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.699e-06/0.3044, allocations: 0 / 336.3 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004219/0.3048, allocations: 262.2 kB / 336.6 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.3049, allocations: 90 kB / 336.7 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.305, allocations: 6.656 kB / 336.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.3051, allocations: 10 kB / 336.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.3052, allocations: 15.22 kB / 336.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.3052, allocations: 6.156 kB / 336.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.907e-05/0.3053, allocations: 98.97 kB / 336.8 MB, free: 2.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.95e-07/0.3053, allocations: 0 / 336.8 MB, free: 2.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003493/0.3057, allocations: 21.91 kB / 336.8 MB, free: 2.406 MB / 266.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 9.7e-05/0.3058, allocations: 101.9 kB / 336.9 MB, free: 2.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003397/0.3061, allocations: 106.2 kB / 337 MB, free: 2.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3062, allocations: 5.562 kB / 337 MB, free: 2.285 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.3063, allocations: 54.14 kB / 337.1 MB, free: 2.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.3066, allocations: 10.77 kB / 337.1 MB, free: 2.266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004924/0.3071, allocations: 269.9 kB / 337.4 MB, free: 2.047 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001418/0.3072, allocations: 0.6966 MB / 338.1 MB, free: 1.352 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.3073, allocations: 15 kB / 338.1 MB, free: 1.344 MB / 266.7 MB Notification: Performance of SimCode: time 1.424e-06/0.3073, allocations: 1.188 kB / 338.1 MB, free: 1.344 MB / 266.7 MB Notification: Performance of Templates: time 0.002961/0.3103, allocations: 1.18 MB / 339.2 MB, free: 0.9336 MB / 266.7 MB