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 2.223/2.223, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000638/0.0006383, allocations: 12 kB / 282.6 MB, free: 9.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3436, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002043/0.3457, allocations: 1.185 MB / 332.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3469, allocations: 0.5249 MB / 333 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.079e-05/0.347, allocations: 5.219 kB / 333 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.684e-05/0.3471, allocations: 3.812 kB / 333 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.112e-05/0.3472, allocations: 18.2 kB / 333 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005615/0.3477, allocations: 85.08 kB / 333.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.3479, allocations: 78.72 kB / 333.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.348, allocations: 14.45 kB / 333.2 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.412e-05/0.3481, allocations: 40.2 kB / 333.2 MB, free: 5.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.778e-05/0.3482, allocations: 56.3 kB / 333.3 MB, free: 5.414 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.3483, allocations: 6 kB / 333.3 MB, free: 5.414 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001749/0.3484, allocations: 46.06 kB / 333.3 MB, free: 5.402 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.806e-05/0.3485, allocations: 21.48 kB / 333.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.444e-05/0.3486, allocations: 54.89 kB / 333.4 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.3488, allocations: 94.44 kB / 333.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3488, allocations: 0 / 333.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3489, allocations: 0 / 333.5 MB, free: 5.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3489, allocations: 1.156 kB / 333.5 MB, free: 5.336 MB / 266.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.0006482/0.3495, allocations: 0.5406 MB / 334 MB, free: 4.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.3496, allocations: 9.375 kB / 334 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.34e-05/0.3497, allocations: 42.88 kB / 334.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.273e-05/0.3497, allocations: 15.81 kB / 334.1 MB, free: 4.734 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.3498, allocations: 184.8 kB / 334.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.35, allocations: 87.95 kB / 334.4 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.159e-05/0.35, allocations: 16.59 kB / 334.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.3504, allocations: 141.8 kB / 334.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3504, allocations: 0 / 334.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.3505, allocations: 4.438 kB / 334.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3505, allocations: 2.719 kB / 334.5 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003421/0.3508, allocations: 89.42 kB / 334.6 MB, free: 4.316 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008288/0.3517, allocations: 0.5292 MB / 335.1 MB, free: 3.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.3521, allocations: 149.7 kB / 335.3 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.3521, allocations: 6.328 kB / 335.3 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005615/0.3527, allocations: 457.5 kB / 335.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.615e-06/0.3527, allocations: 0 / 335.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001307/0.354, allocations: 0.7836 MB / 336.5 MB, free: 2.652 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/0.3541, allocations: 250.5 kB / 336.8 MB, free: 2.363 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.3543, allocations: 144.5 kB / 336.9 MB, free: 2.242 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.3543, allocations: 35.48 kB / 336.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.3544, allocations: 168.1 kB / 337.1 MB, free: 2.043 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.669e-05/0.3545, allocations: 48.19 kB / 337.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.488e-05/0.3545, allocations: 2.188 kB / 337.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.3546, allocations: 321.3 kB / 337.5 MB, free: 1.691 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.3548, allocations: 58.75 kB / 337.5 MB, free: 1.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.355, allocations: 118.9 kB / 337.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.3553, allocations: 206.6 kB / 337.8 MB, free: 1.391 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.3553, allocations: 1.125 kB / 337.8 MB, free: 1.391 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007499/0.3561, allocations: 393.5 kB / 338.2 MB, free: 1.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.758e-05/0.3562, allocations: 155.6 kB / 338.4 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3562, allocations: 7.219 kB / 338.4 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.3562, allocations: 7.547 kB / 338.4 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.829e-05/0.3563, allocations: 9.656 kB / 338.4 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.3564, allocations: 6.75 kB / 338.4 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.3566, allocations: 25.28 kB / 338.4 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.3566, allocations: 14 kB / 338.5 MB, free: 0.9414 MB / 266.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.000258/0.3569, allocations: 280.9 kB / 338.7 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.357, allocations: 18.02 kB / 338.7 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.357, allocations: 17.02 kB / 338.8 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.357, allocations: 1.188 kB / 338.8 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3571, allocations: 1.062 kB / 338.8 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3571, allocations: 5.578 kB / 338.8 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008667/0.3579, allocations: 0.5659 MB / 339.3 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.358, allocations: 2.359 kB / 339.3 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.947e-05/0.358, allocations: 2.438 kB / 339.3 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.358, allocations: 5.25 kB / 339.3 MB, free: 216 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.3581, allocations: 13.56 kB / 339.4 MB, free: 212 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3581, allocations: 9.203 kB / 339.4 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3581, allocations: 1.312 kB / 339.4 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.3592, allocations: 0.5543 MB / 339.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.303e-05/0.3593, allocations: 89.88 kB / 340 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.3593, allocations: 13.5 kB / 340 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3596, allocations: 18.58 kB / 340 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.3597, allocations: 24.98 kB / 340.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.3598, allocations: 14.53 kB / 340.1 MB, free: 15.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.3599, allocations: 98.7 kB / 340.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3599, allocations: 4 kB / 340.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004985/0.3604, allocations: 60.97 kB / 340.2 MB, free: 15.62 MB / 282.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.001696/0.3621, allocations: 1.139 MB / 341.4 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3632, allocations: 0.4929 MB / 341.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3632, allocations: 0 / 341.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006185/0.3638, allocations: 418 kB / 342.3 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3641, allocations: 20.92 kB / 342.3 MB, free: 13.92 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.3667, allocations: 0.9979 MB / 343.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.3672, allocations: 0.7145 MB / 344 MB, free: 12.46 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.074e-05/0.3673, allocations: 28.17 kB / 344 MB, free: 12.44 MB / 282.7 MB Notification: Performance of SimCode: time 1.272e-06/0.3673, allocations: 0 / 344 MB, free: 12.44 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.816/3.183, allocations: 2.338 MB / 346.4 MB, free: 11.23 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay_res.mat failed! " Variables in the reference:time,booleanTable.index,booleanTable.nextTime,booleanTable.y,onDelay1.delaySignal,onDelay1.t_next,onDelay1.u,onDelay2.delaySignal,onDelay2.t_next,onDelay2.u,onDelay3.delaySignal,onDelay3.t_next,onDelay3.u Variables in the result:booleanStep2.startTime,booleanStep2.startValue,booleanStep2.y,booleanStep3.startTime,booleanStep3.startValue,booleanStep3.y,booleanTable.index,booleanTable.n,booleanTable.nextTime,booleanTable.startValue,booleanTable.table[1],booleanTable.table[2],booleanTable.table[3],booleanTable.table[4],booleanTable.table[5],booleanTable.table[6],booleanTable.y,onDelay1.delaySignal,onDelay1.delayTime,onDelay1.t_next,onDelay1.u,onDelay1.y,onDelay2.delaySignal,onDelay2.delayTime,onDelay2.t_next,onDelay2.u,onDelay2.y,onDelay3.delaySignal,onDelay3.delayTime,onDelay3.t_next,onDelay3.u,onDelay3.y,time