Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001043/0.001043, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.2 MB / 218.9 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008869/0.0008869, allocations: 81.36 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4352/0.4352, allocations: 43.47 MB / 358.6 MB, free: 51.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.322e-05, allocations: 0 / 425.4 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1395, allocations: 58.85 MB / 484.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5692, allocations: 88.98 MB / 0.5598 GB, free: 15.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.5695, allocations: 68.73 kB / 0.5599 GB, free: 15.24 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01583/0.5853, allocations: 6.006 MB / 0.5657 GB, free: 11.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.5854, allocations: 0 / 0.5657 GB, free: 11.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.844e-05/0.5854, allocations: 7.938 kB / 0.5657 GB, free: 11.5 MB / 394.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.0006827/0.5861, allocations: 0.5902 MB / 0.5663 GB, free: 10.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.5861, allocations: 8.031 kB / 0.5663 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.94e-05/0.5862, allocations: 53.42 kB / 0.5664 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.5863, allocations: 31.16 kB / 0.5664 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.5867, allocations: 280 kB / 0.5667 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-05/0.5868, allocations: 91.36 kB / 0.5668 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.5868, allocations: 15.88 kB / 0.5668 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.5871, allocations: 148.8 kB / 0.5669 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.5871, allocations: 4 kB / 0.5669 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.5871, allocations: 5.375 kB / 0.5669 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.5871, allocations: 6.25 kB / 0.5669 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000148/0.5873, allocations: 83.97 kB / 0.567 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000724/0.588, allocations: 0.6259 MB / 0.5676 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.5883, allocations: 165.3 kB / 0.5678 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.5884, allocations: 97.55 kB / 0.5679 GB, free: 9.324 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.5884, allocations: 7.938 kB / 0.5679 GB, free: 9.316 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003136/0.5888, allocations: 417.1 kB / 0.5683 GB, free: 8.871 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.5888, allocations: 0 / 0.5683 GB, free: 8.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004824/0.5893, allocations: 355.6 kB / 0.5686 GB, free: 8.555 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/0.5893, allocations: 221.3 kB / 0.5688 GB, free: 8.293 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.5896, allocations: 288.6 kB / 0.5691 GB, free: 8.059 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.5897, allocations: 33.52 kB / 0.5691 GB, free: 8.023 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.5897, allocations: 134.9 kB / 0.5693 GB, free: 7.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.413e-05/0.5898, allocations: 54.72 kB / 0.5693 GB, free: 7.875 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-06/0.5898, allocations: 0 / 0.5693 GB, free: 7.875 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.198e-05/0.5899, allocations: 338.4 kB / 0.5696 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.204e-05/0.59, allocations: 55.44 kB / 0.5697 GB, free: 7.512 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.5901, allocations: 137.6 kB / 0.5698 GB, free: 7.367 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.5902, allocations: 152.2 kB / 0.57 GB, free: 7.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5902, allocations: 0 / 0.57 GB, free: 7.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003251/0.5906, allocations: 329.3 kB / 0.5703 GB, free: 6.922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.5906, allocations: 97.58 kB / 0.5704 GB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5906, allocations: 4 kB / 0.5704 GB, free: 6.809 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5906, allocations: 5.406 kB / 0.5704 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.5908, allocations: 31.81 kB / 0.5704 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.5908, allocations: 4 kB / 0.5704 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.5909, allocations: 20 kB / 0.5704 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.5909, allocations: 11.98 kB / 0.5704 GB, free: 6.742 MB / 394.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.0001165/0.5911, allocations: 236.6 kB / 0.5707 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.293e-05/0.5911, allocations: 31.72 kB / 0.5707 GB, free: 6.465 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000268/0.5914, allocations: 210.2 kB / 0.5709 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.5914, allocations: 7.984 kB / 0.5709 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5914, allocations: 7.953 kB / 0.5709 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5914, allocations: 0 / 0.5709 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.5916, allocations: 296 kB / 0.5712 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.5916, allocations: 0 / 0.5712 GB, free: 5.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.267e-05/0.5917, allocations: 8 kB / 0.5712 GB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.5917, allocations: 5.312 kB / 0.5712 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.5917, allocations: 15.42 kB / 0.5712 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5917, allocations: 0 / 0.5712 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5917, allocations: 0 / 0.5712 GB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004686/0.5922, allocations: 460.4 kB / 0.5717 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.373e-05/0.5923, allocations: 112.6 kB / 0.5718 GB, free: 5.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.147e-05/0.5924, allocations: 19.44 kB / 0.5718 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.5925, allocations: 16 kB / 0.5718 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.058e-05/0.5926, allocations: 23.78 kB / 0.5718 GB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.227e-05/0.5926, allocations: 8 kB / 0.5718 GB, free: 5.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002017/0.5928, allocations: 231.7 kB / 0.5721 GB, free: 5.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5928, allocations: 0 / 0.5721 GB, free: 5.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003009/0.5931, allocations: 75.62 kB / 0.5721 GB, free: 5.094 MB / 394.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.001439/0.5946, allocations: 1.414 MB / 0.5735 GB, free: 3.773 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003861/0.595, allocations: 386.7 kB / 0.5739 GB, free: 3.434 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.595, allocations: 7.938 kB / 0.5739 GB, free: 3.426 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.5952, allocations: 338.8 kB / 0.5742 GB, free: 3.133 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.5955, allocations: 42.72 kB / 0.5742 GB, free: 3.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007796/0.5963, allocations: 445.8 kB / 0.5747 GB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.5965, allocations: 0.7593 MB / 0.5754 GB, free: 1.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.605e-05/0.5966, allocations: 41.67 kB / 0.5755 GB, free: 1.871 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.797e-05/0.5967, allocations: 69.34 kB / 0.5755 GB, free: 1.84 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5967, allocations: 0 / 0.5755 GB, free: 1.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.6155, allocations: 5.557 MB / 0.5809 GB, free: 12.31 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/0.6157, allocations: 168.5 kB / 0.5811 GB, free: 12.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.599, allocations: 4 kB / 0.5811 GB, free: 12.08 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat