Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.038/2.038, allocations: 209.2 MB / 225.4 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007118/0.0007121, allocations: 8 kB / 283.1 MB, free: 9.859 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1125, allocations: 48.72 MB / 331.8 MB, free: 9.055 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3984/0.511, allocations: 74.42 MB / 406.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.5113, allocations: 67.97 kB / 406.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006311/0.5177, allocations: 1.451 MB / 407.7 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5177, allocations: 0 / 407.7 MB, free: 9.344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.5177, allocations: 0 / 407.7 MB, free: 9.344 MB / 330.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.0006807/0.5184, allocations: 382.9 kB / 408.1 MB, free: 8.922 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.5185, allocations: 16.03 kB / 408.1 MB, free: 8.906 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.135e-05/0.5185, allocations: 7.906 kB / 408.1 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.5187, allocations: 178.9 kB / 408.3 MB, free: 8.684 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.5187, allocations: 9.859 kB / 408.3 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.5188, allocations: 4 kB / 408.3 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.5191, allocations: 97.77 kB / 408.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.5191, allocations: 0 / 408.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.5191, allocations: 0 / 408.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.5191, allocations: 4 kB / 408.4 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.5194, allocations: 51.97 kB / 408.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.5201, allocations: 324.7 kB / 408.8 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.5204, allocations: 99.03 kB / 408.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.5205, allocations: 0 / 408.9 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000316/0.5208, allocations: 95.36 kB / 409 MB, free: 7.938 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.5208, allocations: 2.297 kB / 409 MB, free: 7.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007019/0.5215, allocations: 197.7 kB / 409.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.5216, allocations: 55.41 kB / 409.2 MB, free: 7.672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.5217, allocations: 133.5 kB / 409.4 MB, free: 7.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.5218, allocations: 33.7 kB / 409.4 MB, free: 7.492 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/0.5219, allocations: 154.6 kB / 409.5 MB, free: 7.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.5219, allocations: 43.53 kB / 409.6 MB, free: 7.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-06/0.5219, allocations: 0 / 409.6 MB, free: 7.297 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5221, allocations: 318.8 kB / 409.9 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.5222, allocations: 36.17 kB / 409.9 MB, free: 6.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.5224, allocations: 80.25 kB / 410 MB, free: 6.844 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001747/0.5226, allocations: 47.91 kB / 410.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.5226, allocations: 224 / 410.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004366/0.5231, allocations: 157.5 kB / 410.2 MB, free: 6.637 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.5231, allocations: 4 kB / 410.2 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.5231, allocations: 0 / 410.2 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.5231, allocations: 10.78 kB / 410.2 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.5233, allocations: 23.92 kB / 410.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.5234, allocations: 7.953 kB / 410.3 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.5235, allocations: 15.89 kB / 410.3 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.5235, allocations: 4 kB / 410.3 MB, free: 6.574 MB / 330.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.0001863/0.5237, allocations: 143.9 kB / 410.4 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.5237, allocations: 7.906 kB / 410.4 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.46e-05/0.5238, allocations: 20.48 kB / 410.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.5238, allocations: 4 kB / 410.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.5238, allocations: 0 / 410.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.5238, allocations: 3.953 kB / 410.5 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007851/0.5246, allocations: 438.3 kB / 410.9 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.5247, allocations: 0 / 410.9 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.5248, allocations: 11.98 kB / 410.9 MB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.5248, allocations: 7.938 kB / 410.9 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.5248, allocations: 4 kB / 410.9 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.5248, allocations: 4.828 kB / 410.9 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5248, allocations: 0 / 410.9 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.5254, allocations: 260 kB / 411.2 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.676e-05/0.5255, allocations: 89 kB / 411.3 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.5255, allocations: 8 kB / 411.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.5257, allocations: 11.98 kB / 411.3 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.5258, allocations: 11.94 kB / 411.3 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.5258, allocations: 12 kB / 411.3 MB, free: 5.461 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.007e-05/0.5259, allocations: 91.27 kB / 411.4 MB, free: 5.371 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5259, allocations: 0 / 411.4 MB, free: 5.371 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.5262, allocations: 24 kB / 411.4 MB, free: 5.348 MB / 330.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.0001281/0.5264, allocations: 103.2 kB / 411.5 MB, free: 5.238 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.5268, allocations: 115.8 kB / 411.6 MB, free: 5.125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5268, allocations: 0 / 411.6 MB, free: 5.125 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.527, allocations: 52.11 kB / 411.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.5272, allocations: 8.312 kB / 411.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006296/0.5279, allocations: 261.7 kB / 411.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.5282, allocations: 0.7043 MB / 412.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.5283, allocations: 19.44 kB / 412.7 MB, free: 4.023 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5283, allocations: 0 / 412.7 MB, free: 4.023 MB / 330.7 MB Notification: Performance of Templates: time 0.003635/0.5319, allocations: 1.175 MB / 413.8 MB, free: 2.852 MB / 330.7 MB