Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009897/0.009896, allocations: 167 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.654/1.654, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001967/0.001967, allocations: 111.4 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.424/0.424, allocations: 38.06 MB / 303.7 MB, free: 42.44 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004531/0.0004532, allocations: 12 kB / 363 MB, free: 5.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.103, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.413/0.516, allocations: 74.62 MB / 486.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.5163, allocations: 64.34 kB / 486.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008138/0.5245, allocations: 1.984 MB / 488.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5245, allocations: 0 / 488.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.505e-06/0.5245, allocations: 0 / 488.3 MB, free: 11.33 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.0005769/0.5251, allocations: 0.55 MB / 488.9 MB, free: 10.72 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.5252, allocations: 12.02 kB / 488.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.16e-05/0.5252, allocations: 45.31 kB / 489 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.898e-05/0.5253, allocations: 17.31 kB / 489 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.5254, allocations: 178.1 kB / 489.1 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.846e-05/0.5255, allocations: 92.03 kB / 489.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/0.5256, allocations: 12 kB / 489.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.5259, allocations: 139 kB / 489.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.526, allocations: 0 / 489.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.526, allocations: 7.438 kB / 489.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.526, allocations: 4 kB / 489.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.5263, allocations: 88.81 kB / 489.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.5271, allocations: 0.5329 MB / 490 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.5274, allocations: 159.4 kB / 490.2 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.5275, allocations: 3.938 kB / 490.2 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004393/0.5279, allocations: 462.7 kB / 490.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.515e-06/0.5279, allocations: 1.688 kB / 490.6 MB, free: 8.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001157/0.5291, allocations: 0.78 MB / 491.4 MB, free: 8.125 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.5292, allocations: 247.2 kB / 491.6 MB, free: 7.832 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.5293, allocations: 128.2 kB / 491.8 MB, free: 7.711 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.5294, allocations: 29.7 kB / 491.8 MB, free: 7.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/0.5294, allocations: 100 kB / 491.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.5295, allocations: 47.16 kB / 491.9 MB, free: 7.547 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.5295, allocations: 4 kB / 491.9 MB, free: 7.543 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.5296, allocations: 331.9 kB / 492.3 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.5298, allocations: 59.45 kB / 492.3 MB, free: 7.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.53, allocations: 122.8 kB / 492.5 MB, free: 7.051 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.5303, allocations: 195.6 kB / 492.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5303, allocations: 4 kB / 492.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007048/0.531, allocations: 406.4 kB / 493 MB, free: 6.473 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.476e-05/0.5311, allocations: 152.4 kB / 493.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.5311, allocations: 0.7812 kB / 493.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.5312, allocations: 4 kB / 493.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.5313, allocations: 11.94 kB / 493.2 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.5313, allocations: 8.188 kB / 493.2 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.5315, allocations: 27.39 kB / 493.2 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.5315, allocations: 15.95 kB / 493.3 MB, free: 6.234 MB / 330.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.0002064/0.5317, allocations: 278.9 kB / 493.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.5318, allocations: 16.19 kB / 493.5 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.5318, allocations: 12.12 kB / 493.6 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.5318, allocations: 4 kB / 493.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5319, allocations: 10.44 kB / 493.6 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.5319, allocations: 0 / 493.6 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007283/0.5326, allocations: 0.5683 MB / 494.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5326, allocations: 0 / 494.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.457e-05/0.5326, allocations: 0 / 494.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.5327, allocations: 4 kB / 494.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.5327, allocations: 11.98 kB / 494.2 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5327, allocations: 3.938 kB / 494.2 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5327, allocations: 4 kB / 494.2 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008403/0.5336, allocations: 0.571 MB / 494.7 MB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.193e-05/0.5336, allocations: 96.86 kB / 494.8 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.083e-05/0.5337, allocations: 11.95 kB / 494.8 MB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.5339, allocations: 19.98 kB / 494.9 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.584e-05/0.534, allocations: 27.59 kB / 494.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.5341, allocations: 19.92 kB / 494.9 MB, free: 4.605 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.408e-05/0.5341, allocations: 100.8 kB / 495 MB, free: 4.516 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5341, allocations: 0 / 495 MB, free: 4.516 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004495/0.5346, allocations: 63.88 kB / 495.1 MB, free: 4.457 MB / 330.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.001176/0.5358, allocations: 1.291 MB / 496.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006837/0.5365, allocations: 0.4975 MB / 496.9 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5365, allocations: 0 / 496.9 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004298/0.537, allocations: 418.3 kB / 497.3 MB, free: 2.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.5372, allocations: 15.94 kB / 497.3 MB, free: 2.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.5393, allocations: 2.166 MB / 499.4 MB, free: 236 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.5396, allocations: 0.7193 MB / 0.4884 GB, free: 15.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.463e-05/0.5397, allocations: 8.422 kB / 0.4885 GB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.568e-05/0.5398, allocations: 25.3 kB / 0.4885 GB, free: 15.47 MB / 346.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5398, allocations: 0 / 0.4885 GB, free: 15.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08083/0.6206, allocations: 3.011 MB / 0.4914 GB, free: 12.55 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002952/0.621, allocations: 158.2 kB / 0.4916 GB, free: 12.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.244, allocations: 3.938 kB / 0.4916 GB, free: 12.31 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat