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.163/2.163, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004109/0.0004111, allocations: 8 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3206, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002056/0.3227, allocations: 1.196 MB / 370.5 MB, free: 9.504 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3239, allocations: 0.5367 MB / 371 MB, free: 8.965 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.566e-05/0.324, allocations: 0 / 371 MB, free: 8.965 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.132e-05/0.3241, allocations: 3.938 kB / 371 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.705e-05/0.3241, allocations: 15.91 kB / 371 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.3247, allocations: 91.88 kB / 371.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.3248, allocations: 67.86 kB / 371.2 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.297e-05/0.3249, allocations: 20.2 kB / 371.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.245e-05/0.325, allocations: 39.91 kB / 371.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.114e-05/0.3251, allocations: 47.83 kB / 371.3 MB, free: 8.684 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.3252, allocations: 8 kB / 371.3 MB, free: 8.676 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001479/0.3253, allocations: 47.95 kB / 371.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.3254, allocations: 23.91 kB / 371.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.856e-05/0.3255, allocations: 53.64 kB / 371.4 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.3257, allocations: 100.8 kB / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.3257, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3257, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.3257, allocations: 0 / 371.5 MB, free: 8.449 MB / 298.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.00072/0.3265, allocations: 0.5461 MB / 372.1 MB, free: 7.824 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3265, allocations: 8.031 kB / 372.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.3266, allocations: 42.56 kB / 372.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.941e-05/0.3267, allocations: 11.91 kB / 372.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.3268, allocations: 188.9 kB / 372.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3269, allocations: 89.11 kB / 372.4 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.327, allocations: 16 kB / 372.4 MB, free: 7.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.3274, allocations: 136.2 kB / 372.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3274, allocations: 0 / 372.5 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.3275, allocations: 11.95 kB / 372.5 MB, free: 7.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.3275, allocations: 4 kB / 372.6 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.3278, allocations: 83.88 kB / 372.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.3287, allocations: 0.5284 MB / 373.2 MB, free: 6.578 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.3291, allocations: 155.8 kB / 373.3 MB, free: 6.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.3292, allocations: 3.953 kB / 373.3 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006123/0.3298, allocations: 469.2 kB / 373.8 MB, free: 5.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 4.308e-06/0.3298, allocations: 3.984 kB / 373.8 MB, free: 5.852 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.001385/0.3312, allocations: 0.7782 MB / 374.6 MB, free: 4.969 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001654/0.3314, allocations: 251.2 kB / 374.8 MB, free: 4.668 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.3315, allocations: 137.7 kB / 374.9 MB, free: 4.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.3316, allocations: 33.7 kB / 375 MB, free: 4.484 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.3317, allocations: 167 kB / 375.1 MB, free: 4.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.631e-05/0.3318, allocations: 51.34 kB / 375.2 MB, free: 4.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.589e-05/0.3318, allocations: 4 kB / 375.2 MB, free: 4.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3319, allocations: 318.8 kB / 375.5 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.3321, allocations: 55.97 kB / 375.6 MB, free: 3.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.3324, allocations: 119.7 kB / 375.7 MB, free: 3.746 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.3327, allocations: 208.4 kB / 375.9 MB, free: 3.512 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3327, allocations: 4 kB / 375.9 MB, free: 3.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007874/0.3335, allocations: 397.8 kB / 376.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.3337, allocations: 156.5 kB / 376.4 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3337, allocations: 0 / 376.4 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3337, allocations: 4 kB / 376.4 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.537e-05/0.3338, allocations: 8.188 kB / 376.4 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.3338, allocations: 11.94 kB / 376.4 MB, free: 2.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.334, allocations: 23.83 kB / 376.5 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.3341, allocations: 16 kB / 376.5 MB, free: 2.836 MB / 298.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.0002608/0.3343, allocations: 266.9 kB / 376.7 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.987e-05/0.3344, allocations: 27.84 kB / 376.8 MB, free: 2.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.938e-05/0.3345, allocations: 16.38 kB / 376.8 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3345, allocations: 0 / 376.8 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3345, allocations: 4 kB / 376.8 MB, free: 2.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3345, allocations: 384 / 376.8 MB, free: 2.492 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008946/0.3354, allocations: 0.5679 MB / 377.4 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3354, allocations: 7.938 kB / 377.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.739e-05/0.3355, allocations: 3.938 kB / 377.4 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3355, allocations: 4 kB / 377.4 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.3355, allocations: 12 kB / 377.4 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3355, allocations: 4 kB / 377.4 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3355, allocations: 3.984 kB / 377.4 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3366, allocations: 0.5527 MB / 377.9 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.3367, allocations: 93 kB / 378 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/0.3367, allocations: 19.94 kB / 378.1 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.337, allocations: 19.98 kB / 378.1 MB, free: 1.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.3371, allocations: 19.97 kB / 378.1 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.3371, allocations: 12 kB / 378.1 MB, free: 1.043 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.14e-05/0.3372, allocations: 104.5 kB / 378.2 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3372, allocations: 0 / 378.2 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004431/0.3377, allocations: 60 kB / 378.3 MB, free: 0.8828 MB / 298.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.001461/0.3392, allocations: 1.133 MB / 379.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008862/0.3401, allocations: 0.4969 MB / 379.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3401, allocations: 0 / 379.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005581/0.3407, allocations: 418 kB / 380.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.3409, allocations: 10.03 kB / 380.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.3432, allocations: 1.008 MB / 381.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3435, allocations: 0.7162 MB / 382 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.847e-05/0.3436, allocations: 23.44 kB / 382.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.3436, allocations: 0 / 382.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.523/2.866, allocations: 2.325 MB / 384.4 MB, free: 10.49 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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