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.001565/0.001565, allocations: 176.7 kB / 17.06 MB, free: 5.094 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.325/1.325, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008634/0.0008633, allocations: 95.08 kB / 292.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3579/0.3579, allocations: 44.22 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004172/0.0004169, allocations: 8 kB / 460 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3651, allocations: 61.91 MB / 0.5096 GB, free: 38.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1162/0.4813, allocations: 90.6 MB / 0.5981 GB, free: 4.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.4816, allocations: 67.94 kB / 0.5982 GB, free: 4.418 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.016/0.4976, allocations: 6.181 MB / 0.6042 GB, free: 14.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4976, allocations: 0 / 0.6042 GB, free: 14.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.4977, allocations: 4 kB / 0.6042 GB, free: 14.23 MB / 426.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.0008322/0.4985, allocations: 0.6376 MB / 0.6048 GB, free: 13.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4985, allocations: 8.031 kB / 0.6049 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/0.4986, allocations: 58.55 kB / 0.6049 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/0.4987, allocations: 27.72 kB / 0.6049 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.4991, allocations: 277.7 kB / 0.6052 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.805e-05/0.4992, allocations: 93.06 kB / 0.6053 GB, free: 13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.4993, allocations: 16 kB / 0.6053 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.4996, allocations: 157.6 kB / 0.6055 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.4996, allocations: 0 / 0.6055 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.4996, allocations: 4 kB / 0.6055 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.4996, allocations: 4 kB / 0.6055 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.4999, allocations: 99.86 kB / 0.6056 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008231/0.5007, allocations: 0.6309 MB / 0.6062 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.501, allocations: 179.9 kB / 0.6063 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.5011, allocations: 4 kB / 0.6064 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004209/0.5015, allocations: 433.1 kB / 0.6068 GB, free: 11.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.006e-06/0.5015, allocations: 112 / 0.6068 GB, free: 11.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008699/0.5024, allocations: 0.6658 MB / 0.6074 GB, free: 10.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/0.5025, allocations: 221.6 kB / 0.6076 GB, free: 10.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.5028, allocations: 296 kB / 0.6079 GB, free: 9.996 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.5028, allocations: 33.7 kB / 0.6079 GB, free: 9.957 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.906e-05/0.5029, allocations: 128.6 kB / 0.6081 GB, free: 9.828 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/0.503, allocations: 55.34 kB / 0.6081 GB, free: 9.773 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.503, allocations: 4 kB / 0.6081 GB, free: 9.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.5031, allocations: 338.8 kB / 0.6084 GB, free: 9.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.5033, allocations: 60.16 kB / 0.6085 GB, free: 9.371 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.5035, allocations: 153.5 kB / 0.6086 GB, free: 9.188 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.5037, allocations: 165 kB / 0.6088 GB, free: 9.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5037, allocations: 0 / 0.6088 GB, free: 9.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005506/0.5043, allocations: 351 kB / 0.6091 GB, free: 8.641 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/0.5043, allocations: 98.48 kB / 0.6092 GB, free: 8.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.5044, allocations: 4 kB / 0.6092 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.5044, allocations: 4 kB / 0.6092 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.5045, allocations: 23.94 kB / 0.6093 GB, free: 8.496 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.5045, allocations: 7.984 kB / 0.6093 GB, free: 8.488 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.5047, allocations: 24.06 kB / 0.6093 GB, free: 8.465 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.5047, allocations: 16.09 kB / 0.6093 GB, free: 8.449 MB / 426.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 () * Number of clocked 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.0002517/0.5049, allocations: 269.6 kB / 0.6096 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.505, allocations: 43.55 kB / 0.6096 GB, free: 8.113 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003616/0.5054, allocations: 209 kB / 0.6098 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.5054, allocations: 4 kB / 0.6098 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.5054, allocations: 0 / 0.6098 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.5054, allocations: 4 kB / 0.6098 GB, free: 7.887 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.5057, allocations: 301.4 kB / 0.6101 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5057, allocations: 4 kB / 0.6101 GB, free: 7.539 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.273e-05/0.5057, allocations: 4 kB / 0.6101 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.5057, allocations: 0 / 0.6101 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.5058, allocations: 15.98 kB / 0.6101 GB, free: 7.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.5058, allocations: 4 kB / 0.6101 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.5058, allocations: 0 / 0.6101 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006372/0.5064, allocations: 486.4 kB / 0.6106 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.813e-05/0.5065, allocations: 112.8 kB / 0.6107 GB, free: 6.859 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.211e-05/0.5066, allocations: 12 kB / 0.6107 GB, free: 6.848 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.5067, allocations: 23.98 kB / 0.6107 GB, free: 6.824 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.257e-05/0.5068, allocations: 15.98 kB / 0.6107 GB, free: 6.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.5068, allocations: 23.88 kB / 0.6108 GB, free: 6.785 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002367/0.5071, allocations: 232.4 kB / 0.611 GB, free: 6.559 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5071, allocations: 0 / 0.611 GB, free: 6.559 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003343/0.5074, allocations: 71.94 kB / 0.6111 GB, free: 6.488 MB / 426.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) * Number of clocked states: 0 () * 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.001825/0.5093, allocations: 1.469 MB / 0.6125 GB, free: 5.121 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.5098, allocations: 405.9 kB / 0.6129 GB, free: 4.688 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5099, allocations: 0 / 0.6129 GB, free: 4.688 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.5102, allocations: 350.1 kB / 0.6132 GB, free: 4.309 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.5105, allocations: 52.23 kB / 0.6133 GB, free: 4.262 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.5133, allocations: 2.851 MB / 0.6161 GB, free: 1.305 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.5136, allocations: 0.7521 MB / 0.6168 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.5137, allocations: 37.92 kB / 0.6168 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.5138, allocations: 63.41 kB / 0.6169 GB, free: 440 kB / 426.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5139, allocations: 0 / 0.6169 GB, free: 440 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.5326, allocations: 5.592 MB / 0.6223 GB, free: 10.96 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.5328, allocations: 194.2 kB / 0.6225 GB, free: 10.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/2.259, allocations: 7.984 kB / 0.6225 GB, free: 10.72 MB / 442.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