Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 221.3 MB / 236 MB, free: 2.98 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 91.86 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2818/0.2818, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.113e-05/4.115e-05, allocations: 224 / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1469, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4253/0.5722, allocations: 90.53 MB / 0.5902 GB, free: 14.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5725, allocations: 67.97 kB / 0.5903 GB, free: 14.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01793/0.5905, allocations: 6.158 MB / 0.5963 GB, free: 8.516 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5905, allocations: 0 / 0.5963 GB, free: 8.516 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.5905, allocations: 4 kB / 0.5963 GB, free: 8.512 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0008359/0.5914, allocations: 0.6021 MB / 0.5969 GB, free: 7.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.5915, allocations: 12.03 kB / 0.5969 GB, free: 7.828 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.215e-05/0.5915, allocations: 38.56 kB / 0.5969 GB, free: 7.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.551e-05/0.5916, allocations: 27.72 kB / 0.5969 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.5921, allocations: 281.7 kB / 0.5972 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.5922, allocations: 93.06 kB / 0.5973 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.5923, allocations: 19.94 kB / 0.5973 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.5926, allocations: 160.6 kB / 0.5975 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.5926, allocations: 0 / 0.5975 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.5926, allocations: 4 kB / 0.5975 GB, free: 7.129 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.5926, allocations: 4 kB / 0.5975 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.5928, allocations: 87.89 kB / 0.5976 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000898/0.5937, allocations: 0.622 MB / 0.5982 GB, free: 6.359 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.594, allocations: 171.9 kB / 0.5983 GB, free: 6.164 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.5941, allocations: 82.58 kB / 0.5984 GB, free: 6.074 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-05/0.5942, allocations: 7.984 kB / 0.5984 GB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004253/0.5946, allocations: 420.5 kB / 0.5988 GB, free: 5.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.5946, allocations: 3.938 kB / 0.5988 GB, free: 5.578 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006221/0.5952, allocations: 354.4 kB / 0.5992 GB, free: 5.207 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.5954, allocations: 213.6 kB / 0.5994 GB, free: 4.949 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.5957, allocations: 289 kB / 0.5996 GB, free: 4.656 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.5958, allocations: 33.7 kB / 0.5997 GB, free: 4.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.5959, allocations: 136.6 kB / 0.5998 GB, free: 4.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.596, allocations: 51.45 kB / 0.5999 GB, free: 4.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.596, allocations: 11.94 kB / 0.5999 GB, free: 4.418 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5961, allocations: 334.8 kB / 0.6002 GB, free: 4.082 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.561e-05/0.5962, allocations: 56.17 kB / 0.6002 GB, free: 4.027 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.5964, allocations: 134.7 kB / 0.6004 GB, free: 3.859 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.5966, allocations: 151.8 kB / 0.6005 GB, free: 3.695 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5966, allocations: 0 / 0.6005 GB, free: 3.695 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004292/0.597, allocations: 334.2 kB / 0.6008 GB, free: 3.344 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.081e-05/0.5971, allocations: 98.5 kB / 0.6009 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.5971, allocations: 0 / 0.6009 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.5972, allocations: 11.92 kB / 0.6009 GB, free: 3.219 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.5973, allocations: 19.94 kB / 0.601 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.5973, allocations: 4.219 kB / 0.601 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.5975, allocations: 31.89 kB / 0.601 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5975, allocations: 8 kB / 0.601 GB, free: 3.156 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0001991/0.5977, allocations: 237 kB / 0.6012 GB, free: 2.898 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.334e-05/0.5978, allocations: 31.72 kB / 0.6013 GB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003627/0.5981, allocations: 201.1 kB / 0.6014 GB, free: 2.652 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5982, allocations: 4 kB / 0.6015 GB, free: 2.648 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.5982, allocations: 4 kB / 0.6015 GB, free: 2.645 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.5982, allocations: 3.984 kB / 0.6015 GB, free: 2.641 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.5985, allocations: 301.4 kB / 0.6017 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5985, allocations: 0 / 0.6017 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.5986, allocations: 8 kB / 0.6018 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.5986, allocations: 0 / 0.6018 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.5986, allocations: 15.94 kB / 0.6018 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5986, allocations: 0 / 0.6018 GB, free: 2.273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.5986, allocations: 11.92 kB / 0.6018 GB, free: 2.262 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006184/0.5993, allocations: 450.9 kB / 0.6022 GB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.5994, allocations: 112.8 kB / 0.6023 GB, free: 1.637 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.5994, allocations: 12 kB / 0.6023 GB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.5996, allocations: 23.98 kB / 0.6024 GB, free: 1.602 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.898e-05/0.5997, allocations: 27.91 kB / 0.6024 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.5997, allocations: 16.19 kB / 0.6024 GB, free: 1.559 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002632/0.6, allocations: 237.3 kB / 0.6026 GB, free: 1.328 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6, allocations: 0 / 0.6026 GB, free: 1.328 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003413/0.6004, allocations: 68 kB / 0.6027 GB, free: 1.262 MB / 410.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: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001837/0.6022, allocations: 1.417 MB / 0.6041 GB, free: 15.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004883/0.6027, allocations: 386.2 kB / 0.6044 GB, free: 15.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6027, allocations: 0 / 0.6044 GB, free: 15.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003123/0.603, allocations: 342.1 kB / 0.6048 GB, free: 15.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.6033, allocations: 39.45 kB / 0.6048 GB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009155/0.6043, allocations: 454.2 kB / 0.6052 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.6046, allocations: 0.7563 MB / 0.606 GB, free: 13.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.6047, allocations: 29.69 kB / 0.606 GB, free: 13.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.6048, allocations: 67.41 kB / 0.6061 GB, free: 13.71 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6048, allocations: 0 / 0.6061 GB, free: 13.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.6237, allocations: 5.563 MB / 0.6115 GB, free: 8.223 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/0.624, allocations: 164.9 kB / 0.6117 GB, free: 8.004 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.585, allocations: 0 / 0.6117 GB, free: 8.004 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat