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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.975/1.975, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004411/0.0004412, allocations: 12 kB / 282.7 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3777, allocations: 48.7 MB / 331.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1482/0.5259, allocations: 74.45 MB / 405.8 MB, free: 3.871 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.5263, allocations: 59.98 kB / 405.9 MB, free: 3.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008258/0.5346, allocations: 1.441 MB / 407.3 MB, free: 2.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.5346, allocations: 0 / 407.3 MB, free: 2.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.5347, allocations: 0 / 407.3 MB, free: 2.375 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.0009169/0.5356, allocations: 394.9 kB / 407.7 MB, free: 1.941 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/0.5357, allocations: 8.031 kB / 407.7 MB, free: 1.934 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.258e-05/0.5358, allocations: 42.56 kB / 407.7 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.738e-05/0.5358, allocations: 7.906 kB / 407.7 MB, free: 1.875 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002022/0.5361, allocations: 176.8 kB / 407.9 MB, free: 1.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.5361, allocations: 12.17 kB / 407.9 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.5362, allocations: 7.938 kB / 407.9 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003682/0.5365, allocations: 85.64 kB / 408 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.5366, allocations: 0 / 408 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.5366, allocations: 0 / 408 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.5366, allocations: 4 kB / 408 MB, free: 1.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.5369, allocations: 47.97 kB / 408.1 MB, free: 1.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009372/0.5379, allocations: 336.7 kB / 408.4 MB, free: 1.125 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.5383, allocations: 94.48 kB / 408.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.5384, allocations: 6.188 kB / 408.5 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003868/0.5388, allocations: 95.36 kB / 408.6 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.026e-06/0.5388, allocations: 0 / 408.6 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.000891/0.5397, allocations: 197.5 kB / 408.8 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.5398, allocations: 55.53 kB / 408.8 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.54, allocations: 120.8 kB / 409 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.54, allocations: 29.7 kB / 409 MB, free: 500 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.5401, allocations: 162.5 kB / 409.1 MB, free: 336 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.302e-05/0.5402, allocations: 35.53 kB / 409.2 MB, free: 300 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.5403, allocations: 7.938 kB / 409.2 MB, free: 292 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.5405, allocations: 322.8 kB / 409.5 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.5407, allocations: 40.16 kB / 409.5 MB, free: 15.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.5409, allocations: 69.52 kB / 409.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.5412, allocations: 52.14 kB / 409.7 MB, free: 15.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5412, allocations: 0 / 409.7 MB, free: 15.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006084/0.5418, allocations: 157.4 kB / 409.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.5419, allocations: 4.625 kB / 409.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.5419, allocations: 3.938 kB / 409.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.542, allocations: 8.156 kB / 409.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/0.5422, allocations: 19.98 kB / 409.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.5422, allocations: 4 kB / 409.9 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.5424, allocations: 15.95 kB / 409.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.5424, allocations: 4 kB / 409.9 MB, free: 15.56 MB / 346.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.0002737/0.5427, allocations: 140 kB / 410 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.5428, allocations: 7.906 kB / 410 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.5429, allocations: 12.5 kB / 410 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.5429, allocations: 7.984 kB / 410 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5429, allocations: 0 / 410 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.5429, allocations: 3.984 kB / 410 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.544, allocations: 450.7 kB / 410.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5441, allocations: 0 / 410.5 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.5442, allocations: 12 kB / 410.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.5442, allocations: 0 / 410.5 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.5442, allocations: 7.984 kB / 410.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.5443, allocations: 0 / 410.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.5443, allocations: 3.953 kB / 410.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006787/0.545, allocations: 259.5 kB / 410.8 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.5451, allocations: 93 kB / 410.9 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.5452, allocations: 4 kB / 410.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.5454, allocations: 15.98 kB / 410.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.893e-05/0.5455, allocations: 11.94 kB / 410.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.5456, allocations: 4 kB / 410.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.422e-05/0.5457, allocations: 91.81 kB / 411 MB, free: 14.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5457, allocations: 0 / 411 MB, free: 14.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005806/0.5463, allocations: 24 kB / 411 MB, free: 14.34 MB / 346.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.001121/0.5474, allocations: 0.7925 MB / 411.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000537/0.548, allocations: 112.4 kB / 411.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.548, allocations: 0 / 411.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000253/0.5483, allocations: 55.91 kB / 412 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.5487, allocations: 8.219 kB / 412 MB, free: 13.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002604/0.5513, allocations: 1.456 MB / 413.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.5517, allocations: 0.6965 MB / 414.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.5519, allocations: 27.42 kB / 414.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.163e-06/0.5519, allocations: 0 / 414.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.584/3.136, allocations: 1.519 MB / 415.7 MB, free: 9.547 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat