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.169/2.169, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004318, allocations: 16 kB / 314.4 MB, free: 9.562 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2762, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1212/0.3974, allocations: 80.81 MB / 450.1 MB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.3977, allocations: 67.97 kB / 450.1 MB, free: 9.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005774/0.4035, allocations: 1.449 MB / 451.6 MB, free: 8.285 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.377e-06/0.4035, allocations: 4 kB / 451.6 MB, free: 8.281 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.687e-06/0.4035, allocations: 3.938 kB / 451.6 MB, free: 8.277 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.0006059/0.4041, allocations: 387.1 kB / 452 MB, free: 7.852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.4042, allocations: 8.031 kB / 452 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.4042, allocations: 11.86 kB / 452 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.4044, allocations: 178.9 kB / 452.2 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.4045, allocations: 8 kB / 452.2 MB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.4045, allocations: 4 kB / 452.2 MB, free: 7.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.4047, allocations: 89.77 kB / 452.3 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.414e-06/0.4048, allocations: 0 / 452.3 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.4048, allocations: 0 / 452.3 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.4048, allocations: 7.953 kB / 452.3 MB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.405, allocations: 55.97 kB / 452.3 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.4056, allocations: 316.8 kB / 452.6 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.4059, allocations: 102.4 kB / 452.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.406, allocations: 0 / 452.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.4062, allocations: 107.2 kB / 452.8 MB, free: 6.863 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.533e-06/0.4063, allocations: 0 / 452.8 MB, free: 6.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006062/0.4069, allocations: 189.7 kB / 453 MB, free: 6.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.407, allocations: 67.34 kB / 453.1 MB, free: 6.594 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.4071, allocations: 101.2 kB / 453.2 MB, free: 6.484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.4071, allocations: 33.7 kB / 453.2 MB, free: 6.445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.36e-05/0.4072, allocations: 158.8 kB / 453.4 MB, free: 6.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.4073, allocations: 35.55 kB / 453.4 MB, free: 6.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-06/0.4073, allocations: 0 / 453.4 MB, free: 6.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4075, allocations: 322.8 kB / 453.7 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.4076, allocations: 36.36 kB / 453.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.4078, allocations: 77.88 kB / 453.8 MB, free: 5.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.4079, allocations: 47.98 kB / 453.9 MB, free: 5.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.117e-06/0.408, allocations: 4.375 kB / 453.9 MB, free: 5.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004177/0.4084, allocations: 157.6 kB / 454 MB, free: 5.586 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4084, allocations: 8 kB / 454.1 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.461e-06/0.4084, allocations: 0 / 454.1 MB, free: 5.578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.4085, allocations: 15.88 kB / 454.1 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.4086, allocations: 24.08 kB / 454.1 MB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.127e-06/0.4087, allocations: 4 kB / 454.1 MB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.959e-05/0.4087, allocations: 12 kB / 454.1 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.4088, allocations: 4 kB / 454.1 MB, free: 5.52 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 () * 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.0001397/0.4089, allocations: 128 kB / 454.2 MB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.409, allocations: 11.89 kB / 454.2 MB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.409, allocations: 8.5 kB / 454.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.409, allocations: 7.953 kB / 454.3 MB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.113e-06/0.409, allocations: 0 / 454.3 MB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.262e-06/0.4091, allocations: 4 kB / 454.3 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007473/0.4098, allocations: 442.8 kB / 454.7 MB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.279e-06/0.4098, allocations: 0 / 454.7 MB, free: 4.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.869e-05/0.4099, allocations: 19.98 kB / 454.7 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.925e-06/0.4099, allocations: 3.953 kB / 454.7 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.41, allocations: 4 kB / 454.7 MB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.616e-06/0.41, allocations: 0 / 454.7 MB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.66e-06/0.41, allocations: 4 kB / 454.7 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004575/0.4105, allocations: 259.5 kB / 455 MB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.128e-05/0.4105, allocations: 85.02 kB / 455.1 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.4106, allocations: 11.94 kB / 455.1 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.4107, allocations: 12 kB / 455.1 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.4108, allocations: 7.984 kB / 455.1 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.4108, allocations: 11.92 kB / 455.1 MB, free: 4.418 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.817e-05/0.4109, allocations: 87.28 kB / 455.2 MB, free: 4.332 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.4109, allocations: 0 / 455.2 MB, free: 4.332 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00035/0.4113, allocations: 23.98 kB / 455.2 MB, free: 4.309 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) * 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.0001319/0.4114, allocations: 111.2 kB / 455.3 MB, free: 4.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.4118, allocations: 111.8 kB / 455.4 MB, free: 4.082 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4118, allocations: 0 / 455.4 MB, free: 4.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.412, allocations: 47.98 kB / 455.5 MB, free: 4.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.4122, allocations: 20.14 kB / 455.5 MB, free: 4.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005435/0.4128, allocations: 251.5 kB / 455.7 MB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.4131, allocations: 0.6965 MB / 456.4 MB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.4132, allocations: 15.44 kB / 456.5 MB, free: 3 MB / 378.7 MB Notification: Performance of SimCode: time 1.321e-06/0.4132, allocations: 0 / 456.5 MB, free: 3 MB / 378.7 MB Notification: Performance of Templates: time 0.003146/0.4164, allocations: 1.172 MB / 457.6 MB, free: 1.832 MB / 378.7 MB