Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.985/1.985, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004279/0.0004279, allocations: 12 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4181/0.4186, allocations: 48.7 MB / 331.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.5703, allocations: 74.63 MB / 406 MB, free: 3.676 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5706, allocations: 63.97 kB / 406.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009412/0.5801, allocations: 1.97 MB / 408 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5801, allocations: 1.859 kB / 408 MB, free: 1.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.5801, allocations: 0 / 408 MB, free: 1.648 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008113/0.581, allocations: 0.5408 MB / 408.6 MB, free: 1.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.581, allocations: 11.97 kB / 408.6 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.799e-05/0.5811, allocations: 46.55 kB / 408.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.416e-05/0.5812, allocations: 11.91 kB / 408.6 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.5814, allocations: 190.7 kB / 408.8 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/0.5815, allocations: 93.09 kB / 408.9 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/0.5816, allocations: 15.98 kB / 408.9 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.582, allocations: 140.8 kB / 409.1 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.582, allocations: 0 / 409.1 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.5821, allocations: 4 kB / 409.1 MB, free: 456 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.5821, allocations: 4 kB / 409.1 MB, free: 452 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.5824, allocations: 87.88 kB / 409.2 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.5835, allocations: 0.5283 MB / 409.7 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.5839, allocations: 155.8 kB / 409.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.5839, allocations: 4 kB / 409.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006275/0.5845, allocations: 462.9 kB / 410.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 4.979e-06/0.5846, allocations: 4 kB / 410.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001526/0.5861, allocations: 0.7765 MB / 411.1 MB, free: 14.17 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.5863, allocations: 247.3 kB / 411.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.5865, allocations: 128.9 kB / 411.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.5865, allocations: 29.7 kB / 411.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.5866, allocations: 166.9 kB / 411.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.989e-05/0.5867, allocations: 51.39 kB / 411.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.5867, allocations: 4 kB / 411.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.5869, allocations: 330.8 kB / 412 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.5871, allocations: 55.97 kB / 412.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.5874, allocations: 115.7 kB / 412.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.5877, allocations: 208.5 kB / 412.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.5878, allocations: 3.938 kB / 412.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008489/0.5886, allocations: 401.8 kB / 412.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.5888, allocations: 152.8 kB / 412.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5888, allocations: 4 kB / 412.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.5888, allocations: 4 kB / 412.9 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.589, allocations: 15.92 kB / 413 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.589, allocations: 192 / 413 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.5892, allocations: 27.94 kB / 413 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.5892, allocations: 11.95 kB / 413 MB, free: 12.05 MB / 346.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 () * Number of clocked 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.0002978/0.5896, allocations: 274.8 kB / 413.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.5896, allocations: 23.81 kB / 413.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.857e-05/0.5897, allocations: 12.38 kB / 413.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.5897, allocations: 4 kB / 413.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.5897, allocations: 0 / 413.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.5897, allocations: 7.984 kB / 413.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009309/0.5907, allocations: 0.5564 MB / 413.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.5907, allocations: 4 kB / 413.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/0.5907, allocations: 7.922 kB / 413.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.5907, allocations: 0 / 413.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.5908, allocations: 12 kB / 413.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.5908, allocations: 4 kB / 413.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.5908, allocations: 4 kB / 413.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.5919, allocations: 0.5761 MB / 414.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.592, allocations: 89.02 kB / 414.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.192e-05/0.592, allocations: 19.94 kB / 414.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.5923, allocations: 23.92 kB / 414.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.5924, allocations: 19.97 kB / 414.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.5924, allocations: 12 kB / 414.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.535e-05/0.5925, allocations: 99.27 kB / 414.7 MB, free: 10.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5926, allocations: 3.938 kB / 414.7 MB, free: 10.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000523/0.5931, allocations: 64 kB / 414.8 MB, free: 10.07 MB / 346.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) * Number of clocked states: 0 () * 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.00163/0.5947, allocations: 1.292 MB / 416.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009234/0.5957, allocations: 0.4969 MB / 416.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.5957, allocations: 192 / 416.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005887/0.5963, allocations: 417.9 kB / 417 MB, free: 7.695 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.5966, allocations: 31.53 kB / 417 MB, free: 7.668 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.5995, allocations: 2.2 MB / 419.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.5999, allocations: 0.7083 MB / 419.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.003e-05/0.6, allocations: 31.42 kB / 420 MB, free: 4.602 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6, allocations: 0 / 420 MB, free: 4.602 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.749/3.349, allocations: 2.342 MB / 422.3 MB, free: 2.258 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat