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.568/2.568, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006853/0.0006854, allocations: 16 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4388, allocations: 54.85 MB / 369.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1704/0.6093, allocations: 81.02 MB / 450.4 MB, free: 9.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.6097, allocations: 63.92 kB / 450.4 MB, free: 9.418 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009224/0.6189, allocations: 1.974 MB / 452.4 MB, free: 7.438 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.619, allocations: 3.938 kB / 452.4 MB, free: 7.434 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.619, allocations: 4 kB / 452.4 MB, free: 7.43 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.0007614/0.6197, allocations: 0.5463 MB / 453 MB, free: 6.805 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.6198, allocations: 8.031 kB / 453 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.626e-05/0.6199, allocations: 46.56 kB / 453 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.62, allocations: 19.86 kB / 453 MB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.6201, allocations: 178.9 kB / 453.2 MB, free: 6.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.6203, allocations: 85.11 kB / 453.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.529e-05/0.6203, allocations: 20 kB / 453.3 MB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00041/0.6208, allocations: 140.1 kB / 453.4 MB, free: 6.234 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.6208, allocations: 4 kB / 453.4 MB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.6208, allocations: 4 kB / 453.4 MB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.6208, allocations: 3.953 kB / 453.5 MB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.6212, allocations: 91.88 kB / 453.5 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009593/0.6222, allocations: 0.5168 MB / 454.1 MB, free: 5.559 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004144/0.6226, allocations: 159.8 kB / 454.2 MB, free: 5.375 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.6226, allocations: 0 / 454.2 MB, free: 5.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.6233, allocations: 478 kB / 454.7 MB, free: 4.824 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.464e-06/0.6233, allocations: 3.938 kB / 454.7 MB, free: 4.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001471/0.6248, allocations: 0.7765 MB / 455.5 MB, free: 3.941 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.625, allocations: 251.3 kB / 455.7 MB, free: 3.641 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.6252, allocations: 124.9 kB / 455.8 MB, free: 3.512 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.6252, allocations: 33.7 kB / 455.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.236e-05/0.6253, allocations: 163 kB / 456 MB, free: 3.312 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/0.6254, allocations: 43.5 kB / 456.1 MB, free: 3.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.728e-05/0.6254, allocations: 4 kB / 456.1 MB, free: 3.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.6256, allocations: 318.8 kB / 456.4 MB, free: 2.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.6258, allocations: 59.97 kB / 456.4 MB, free: 2.887 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.6261, allocations: 123.6 kB / 456.6 MB, free: 2.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.6264, allocations: 204.5 kB / 456.8 MB, free: 2.508 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.6264, allocations: 0 / 456.8 MB, free: 2.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008799/0.6273, allocations: 402 kB / 457.2 MB, free: 2.078 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.6274, allocations: 157.9 kB / 457.3 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.6274, allocations: 4 kB / 457.3 MB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.6275, allocations: 7.938 kB / 457.3 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.6276, allocations: 20.23 kB / 457.3 MB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.6276, allocations: 4 kB / 457.3 MB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.6278, allocations: 23.92 kB / 457.4 MB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.6279, allocations: 16 kB / 457.4 MB, free: 1.82 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 () * 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.0002987/0.6282, allocations: 278.8 kB / 457.7 MB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.6282, allocations: 15.91 kB / 457.7 MB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.6283, allocations: 20.31 kB / 457.7 MB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.6283, allocations: 4 kB / 457.7 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6283, allocations: 0 / 457.7 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.6284, allocations: 0 / 457.7 MB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009364/0.6293, allocations: 0.5602 MB / 458.3 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.6293, allocations: 3.953 kB / 458.3 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.475e-05/0.6293, allocations: 4 kB / 458.3 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.6294, allocations: 4 kB / 458.3 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.6294, allocations: 12 kB / 458.3 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.6294, allocations: 0 / 458.3 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6294, allocations: 4 kB / 458.3 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.6305, allocations: 0.5719 MB / 458.9 MB, free: 196 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.6306, allocations: 88.92 kB / 458.9 MB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.6307, allocations: 15.98 kB / 459 MB, free: 72 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.6309, allocations: 20 kB / 459 MB, free: 52 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.631, allocations: 15.97 kB / 459 MB, free: 36 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.6311, allocations: 16 kB / 459 MB, free: 20 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.6312, allocations: 101.3 kB / 459.1 MB, free: 15.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6312, allocations: 0 / 459.1 MB, free: 15.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004954/0.6317, allocations: 67.94 kB / 459.2 MB, free: 15.85 MB / 394.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.00159/0.6333, allocations: 1.292 MB / 460.5 MB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008975/0.6343, allocations: 0.5011 MB / 461 MB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.6343, allocations: 0 / 461 MB, free: 13.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005997/0.6349, allocations: 413.4 kB / 461.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.6352, allocations: 15.95 kB / 461.4 MB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002826/0.638, allocations: 2.208 MB / 463.6 MB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.6384, allocations: 0.7124 MB / 464.3 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.517e-05/0.6385, allocations: 27.44 kB / 464.3 MB, free: 10.38 MB / 394.7 MB Notification: Performance of SimCode: time 1.103e-06/0.6385, allocations: 4 kB / 464.3 MB, free: 10.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.534/3.173, allocations: 2.323 MB / 466.7 MB, free: 8.059 MB / 394.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