Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.374/2.374, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.287e-05, allocations: 7.984 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4005, allocations: 54.85 MB / 364.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.57, allocations: 80.92 MB / 445.5 MB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5703, allocations: 64.84 kB / 445.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009116/0.5794, allocations: 1.968 MB / 447.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5795, allocations: 0 / 447.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.5795, allocations: 4 kB / 447.6 MB, free: 13.55 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007102/0.5802, allocations: 0.5334 MB / 448.1 MB, free: 12.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.5803, allocations: 8.031 kB / 448.1 MB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.752e-05/0.5804, allocations: 46.55 kB / 448.2 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.755e-05/0.5804, allocations: 19.86 kB / 448.2 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.5806, allocations: 170.9 kB / 448.4 MB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.5807, allocations: 92.39 kB / 448.4 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.5808, allocations: 16 kB / 448.5 MB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.5812, allocations: 133 kB / 448.6 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.5812, allocations: 7.922 kB / 448.6 MB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.5812, allocations: 8 kB / 448.6 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.5812, allocations: 7.953 kB / 448.6 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.5815, allocations: 63.98 kB / 448.7 MB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009038/0.5824, allocations: 0.5284 MB / 449.2 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.5827, allocations: 140.2 kB / 449.3 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.583, allocations: 106.8 kB / 449.4 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.583, allocations: 0 / 449.4 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005985/0.5836, allocations: 457.7 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.334e-06/0.5836, allocations: 1.031 kB / 449.9 MB, free: 10.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.000856/0.5845, allocations: 388.3 kB / 450.3 MB, free: 10.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.5846, allocations: 247.3 kB / 450.5 MB, free: 10.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.5848, allocations: 126.5 kB / 450.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.5849, allocations: 33.7 kB / 450.7 MB, free: 10.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.007e-05/0.585, allocations: 163 kB / 450.8 MB, free: 9.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.274e-05/0.585, allocations: 45.02 kB / 450.9 MB, free: 9.828 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.462e-05/0.5851, allocations: 0 / 450.9 MB, free: 9.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.5852, allocations: 322.8 kB / 451.2 MB, free: 9.504 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.5854, allocations: 57.25 kB / 451.2 MB, free: 9.449 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.5857, allocations: 111.7 kB / 451.4 MB, free: 9.312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.586, allocations: 206.2 kB / 451.6 MB, free: 9.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.586, allocations: 0 / 451.6 MB, free: 9.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006958/0.5867, allocations: 383.2 kB / 451.9 MB, free: 8.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.5868, allocations: 148.5 kB / 452.1 MB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5868, allocations: 4 kB / 452.1 MB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.5869, allocations: 4 kB / 452.1 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.587, allocations: 20.17 kB / 452.1 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.587, allocations: 0 / 452.1 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.5872, allocations: 23.92 kB / 452.1 MB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.5873, allocations: 16 kB / 452.1 MB, free: 8.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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.0002422/0.5875, allocations: 261.9 kB / 452.4 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.5876, allocations: 30.83 kB / 452.4 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.81e-05/0.5876, allocations: 16.62 kB / 452.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5877, allocations: 0 / 452.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5877, allocations: 0 / 452.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.5877, allocations: 7.984 kB / 452.4 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009157/0.5886, allocations: 0.5602 MB / 453 MB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5886, allocations: 0 / 453 MB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.92e-05/0.5887, allocations: 7.938 kB / 453 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.5887, allocations: 0 / 453 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/0.5887, allocations: 11.98 kB / 453 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.5887, allocations: 8 kB / 453 MB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5888, allocations: 0 / 453 MB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/0.5897, allocations: 0.5556 MB / 453.6 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.435e-05/0.5898, allocations: 92.86 kB / 453.7 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.5898, allocations: 12 kB / 453.7 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.5901, allocations: 19.98 kB / 453.7 MB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.5902, allocations: 23.97 kB / 453.7 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.5902, allocations: 8 kB / 453.7 MB, free: 6.648 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.935e-05/0.5903, allocations: 104.7 kB / 453.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5903, allocations: 0 / 453.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004505/0.5908, allocations: 67.95 kB / 453.9 MB, free: 6.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.001404/0.5922, allocations: 1.257 MB / 455.2 MB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007503/0.593, allocations: 493.2 kB / 455.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.593, allocations: 0 / 455.7 MB, free: 4.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.5935, allocations: 405.9 kB / 456 MB, free: 4.172 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.5937, allocations: 15.95 kB / 456.1 MB, free: 4.156 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009786/0.5947, allocations: 335.2 kB / 456.4 MB, free: 3.777 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.5951, allocations: 0.7186 MB / 457.1 MB, free: 3.035 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.059e-05/0.5952, allocations: 31.42 kB / 457.1 MB, free: 3.004 MB / 378.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5952, allocations: 0 / 457.1 MB, free: 3.004 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.485/3.081, allocations: 2.358 MB / 459.5 MB, free: 0.6484 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat