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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.342/2.342, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.647e-05/1.69e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2755, allocations: 54.85 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.4007, allocations: 80.05 MB / 438.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.4009, allocations: 59.97 kB / 438.1 MB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005816/0.4068, allocations: 1.43 MB / 439.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.263e-06/0.4068, allocations: 0 / 439.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.4068, allocations: 0 / 439.6 MB, free: 13.27 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.0005944/0.4075, allocations: 390.1 kB / 440 MB, free: 12.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.4075, allocations: 12.03 kB / 440 MB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.052e-05/0.4076, allocations: 11.86 kB / 440 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.4077, allocations: 163.1 kB / 440.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.4078, allocations: 4 kB / 440.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.4078, allocations: 4 kB / 440.1 MB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001305/0.408, allocations: 36.11 kB / 440.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.4081, allocations: 69.67 kB / 440.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.424e-06/0.4082, allocations: 0 / 440.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.4082, allocations: 7.953 kB / 440.3 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.931e-06/0.4082, allocations: 0 / 440.3 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006293/0.4088, allocations: 305.2 kB / 440.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.4091, allocations: 74.58 kB / 440.6 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.406e-05/0.4092, allocations: 48.78 kB / 440.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.4092, allocations: 0 / 440.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.4094, allocations: 91.5 kB / 440.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.637e-06/0.4094, allocations: 0 / 440.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003853/0.4098, allocations: 133.5 kB / 440.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.4099, allocations: 55.41 kB / 440.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.41, allocations: 109.1 kB / 441.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.4101, allocations: 33.7 kB / 441.1 MB, free: 11.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.4102, allocations: 154.8 kB / 441.2 MB, free: 11.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.4102, allocations: 35.59 kB / 441.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.062e-06/0.4103, allocations: 0 / 441.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.4104, allocations: 318.8 kB / 441.6 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.4105, allocations: 32.31 kB / 441.6 MB, free: 11.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.4107, allocations: 62.47 kB / 441.7 MB, free: 10.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.4108, allocations: 44.14 kB / 441.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4108, allocations: 0 / 441.7 MB, free: 10.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003028/0.4111, allocations: 129.4 kB / 441.8 MB, free: 10.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4111, allocations: 4 kB / 441.8 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.665e-06/0.4112, allocations: 4.156 kB / 441.9 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4112, allocations: 4 kB / 441.9 MB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.4114, allocations: 23.94 kB / 441.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.4114, allocations: 11.92 kB / 441.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.279e-05/0.4115, allocations: 11.84 kB / 441.9 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.4115, allocations: 8 kB / 441.9 MB, free: 10.71 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.0001211/0.4117, allocations: 111.2 kB / 442 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/0.4117, allocations: 8 kB / 442 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/0.4118, allocations: 16.73 kB / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.779e-06/0.4118, allocations: 0 / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.4118, allocations: 3.953 kB / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4118, allocations: 7.938 kB / 442.1 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006436/0.4125, allocations: 395.1 kB / 442.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.281e-06/0.4125, allocations: 0 / 442.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.165e-05/0.4126, allocations: 8 kB / 442.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.4126, allocations: 0 / 442.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.4126, allocations: 3.984 kB / 442.5 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.664e-06/0.4126, allocations: 11.95 kB / 442.5 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.034e-06/0.4127, allocations: 3.938 kB / 442.5 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.413, allocations: 231.4 kB / 442.7 MB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.4131, allocations: 84.95 kB / 442.8 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.4131, allocations: 4 kB / 442.8 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.4133, allocations: 11.98 kB / 442.8 MB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.4134, allocations: 15.94 kB / 442.8 MB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.4134, allocations: 4 kB / 442.8 MB, free: 9.727 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.509e-05/0.4135, allocations: 95.58 kB / 442.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.4135, allocations: 0 / 442.9 MB, free: 9.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003475/0.4139, allocations: 16 kB / 442.9 MB, free: 9.617 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.0001515/0.414, allocations: 107.2 kB / 443 MB, free: 9.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002396/0.4143, allocations: 79.92 kB / 443.1 MB, free: 9.422 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.82e-06/0.4143, allocations: 320 / 443.1 MB, free: 9.422 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.4144, allocations: 47.98 kB / 443.2 MB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.4147, allocations: 11.98 kB / 443.2 MB, free: 9.363 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004166/0.4151, allocations: 154.2 kB / 443.3 MB, free: 9.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.4155, allocations: 0.6963 MB / 444 MB, free: 8.457 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.989e-05/0.4156, allocations: 15.42 kB / 444 MB, free: 8.441 MB / 378.7 MB Notification: Performance of SimCode: time 1.484e-06/0.4156, allocations: 0 / 444 MB, free: 8.441 MB / 378.7 MB Notification: Performance of Templates: time 0.00336/0.419, allocations: 1.165 MB / 445.2 MB, free: 7.281 MB / 378.7 MB