Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01023/0.01023, allocations: 173.4 kB / 15.12 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.094/2.094, allocations: 194.5 MB / 210.3 MB, free: 7.602 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001975/0.001975, allocations: 124.5 kB / 255.6 MB, free: 10.23 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2839/0.2839, allocations: 40.02 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006345/0.0006345, allocations: 10.22 kB / 406.3 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1417, allocations: 54.87 MB / 461.1 MB, free: 3.238 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1453/0.287, allocations: 81.02 MB / 0.5294 GB, free: 2.109 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.2873, allocations: 67.97 kB / 0.5295 GB, free: 2.043 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00928/0.2966, allocations: 1.977 MB / 0.5314 GB, free: 60 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2966, allocations: 0 / 0.5314 GB, free: 60 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.2967, allocations: 4 kB / 0.5314 GB, free: 56 kB / 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.2903/0.587, allocations: 0.5357 MB / 0.532 GB, free: 81.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.5871, allocations: 9.469 kB / 0.532 GB, free: 81.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.376e-05/0.5871, allocations: 43.81 kB / 0.532 GB, free: 81.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.927e-05/0.5872, allocations: 18.83 kB / 0.532 GB, free: 81.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.5873, allocations: 174.3 kB / 0.5322 GB, free: 81.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.5875, allocations: 98.44 kB / 0.5323 GB, free: 81.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.5875, allocations: 14.94 kB / 0.5323 GB, free: 81.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.5879, allocations: 134 kB / 0.5324 GB, free: 81.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.5879, allocations: 3 kB / 0.5324 GB, free: 81.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.588, allocations: 5.547 kB / 0.5324 GB, free: 81.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.588, allocations: 7.234 kB / 0.5325 GB, free: 81.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003379/0.5884, allocations: 86.88 kB / 0.5325 GB, free: 81.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008296/0.5892, allocations: 0.5227 MB / 0.533 GB, free: 81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.5896, allocations: 164.5 kB / 0.5332 GB, free: 80.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.5896, allocations: 3.594 kB / 0.5332 GB, free: 80.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004936/0.5901, allocations: 464 kB / 0.5336 GB, free: 80.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.776e-06/0.5902, allocations: 0 / 0.5336 GB, free: 80.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001338/0.5915, allocations: 0.78 MB / 0.5344 GB, free: 80 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.498e-05/0.5916, allocations: 252.5 kB / 0.5346 GB, free: 79.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.5918, allocations: 126.5 kB / 0.5348 GB, free: 79.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.5918, allocations: 34.23 kB / 0.5348 GB, free: 79.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.02e-05/0.5919, allocations: 96.33 kB / 0.5349 GB, free: 79.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.004e-05/0.592, allocations: 45.7 kB / 0.5349 GB, free: 79.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.592, allocations: 6.781 kB / 0.5349 GB, free: 79.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.792e-05/0.5921, allocations: 326.1 kB / 0.5353 GB, free: 79.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.5923, allocations: 56.33 kB / 0.5353 GB, free: 79.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.5926, allocations: 122.6 kB / 0.5354 GB, free: 79.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.5929, allocations: 208.9 kB / 0.5356 GB, free: 78.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.5929, allocations: 5.125 kB / 0.5356 GB, free: 78.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008185/0.5937, allocations: 398.5 kB / 0.536 GB, free: 78.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.54e-05/0.5938, allocations: 155.1 kB / 0.5362 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.5939, allocations: 2.531 kB / 0.5362 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/0.5939, allocations: 4.172 kB / 0.5362 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.594, allocations: 10.64 kB / 0.5362 GB, free: 78.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.594, allocations: 10.88 kB / 0.5362 GB, free: 78.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.5942, allocations: 25.64 kB / 0.5362 GB, free: 78.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/0.5943, allocations: 11.62 kB / 0.5362 GB, free: 78.56 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.0002555/0.5946, allocations: 274.4 kB / 0.5365 GB, free: 78.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.5946, allocations: 18.7 kB / 0.5365 GB, free: 78.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.5947, allocations: 18.23 kB / 0.5365 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.5947, allocations: 5.844 kB / 0.5365 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.5947, allocations: 2.125 kB / 0.5365 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.5947, allocations: 0.8438 kB / 0.5365 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008484/0.5956, allocations: 0.5637 MB / 0.5371 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.5956, allocations: 3.953 kB / 0.5371 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2e-05/0.5956, allocations: 4.906 kB / 0.5371 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.5957, allocations: 5.969 kB / 0.5371 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.724e-05/0.5957, allocations: 14.69 kB / 0.5371 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.5957, allocations: 3 kB / 0.5371 GB, free: 77.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5957, allocations: 7.938 kB / 0.5371 GB, free: 77.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.5967, allocations: 0.5755 MB / 0.5377 GB, free: 77.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.5968, allocations: 93.05 kB / 0.5378 GB, free: 77.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.567e-05/0.5969, allocations: 13.19 kB / 0.5378 GB, free: 77.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.5971, allocations: 21.22 kB / 0.5378 GB, free: 77.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.5972, allocations: 16.56 kB / 0.5378 GB, free: 77.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.5973, allocations: 14.86 kB / 0.5378 GB, free: 77.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.5974, allocations: 101.5 kB / 0.5379 GB, free: 77.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5974, allocations: 0 / 0.5379 GB, free: 77.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005101/0.5979, allocations: 62.59 kB / 0.538 GB, free: 77.42 MB / 378.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.0015/0.5994, allocations: 1.288 MB / 0.5392 GB, free: 76.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008734/0.6004, allocations: 0.4943 MB / 0.5397 GB, free: 76.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6004, allocations: 1.25 kB / 0.5397 GB, free: 76.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005121/0.6009, allocations: 414.4 kB / 0.5401 GB, free: 75.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.6012, allocations: 21.92 kB / 0.5401 GB, free: 75.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/0.6038, allocations: 2.18 MB / 0.5423 GB, free: 74.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001953/0.604, allocations: 0.7071 MB / 0.543 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.738e-05/0.6041, allocations: 7.734 kB / 0.543 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.6042, allocations: 28.38 kB / 0.543 GB, free: 73.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6042, allocations: 0.9688 kB / 0.543 GB, free: 73.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.6353, allocations: 3.003 MB / 0.5459 GB, free: 73.09 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002817/0.6356, allocations: 167.3 kB / 0.5461 GB, free: 72.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.18, allocations: 4 kB / 0.5461 GB, free: 72.84 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat