Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.369/2.369, allocations: 390.3 MB / 402.8 MB, free: 6.645 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.3 MB / 0.7915 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009607/0.0009606, allocations: 83.92 kB / 0.9317 GB, free: 5.738 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.167e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2914, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9891/1.281, allocations: 150.6 MB / 1.366 GB, free: 3.484 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/1.281, allocations: 72.95 kB / 1.366 GB, free: 3.445 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003426/1.284, allocations: 1.222 MB / 1.367 GB, free: 2.383 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.565e-06/1.284, allocations: 3.984 kB / 1.367 GB, free: 2.379 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.833e-06/1.284, allocations: 0 / 1.367 GB, free: 2.379 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004419/1.285, allocations: 376.2 kB / 1.367 GB, free: 1.965 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/1.285, allocations: 12.03 kB / 1.368 GB, free: 1.953 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.76e-05/1.285, allocations: 38.05 kB / 1.368 GB, free: 1.91 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/1.285, allocations: 7.953 kB / 1.368 GB, free: 1.902 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/1.285, allocations: 167.1 kB / 1.368 GB, free: 1.699 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/1.285, allocations: 0.875 kB / 1.368 GB, free: 1.699 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/1.285, allocations: 4 kB / 1.368 GB, free: 1.695 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/1.285, allocations: 56.25 kB / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/1.285, allocations: 0 / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/1.285, allocations: 0 / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/1.285, allocations: 0 / 1.368 GB, free: 1.641 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.408e-05/1.285, allocations: 27.66 kB / 1.368 GB, free: 1.621 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004071/1.286, allocations: 267.5 kB / 1.368 GB, free: 1.324 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.415e-05/1.286, allocations: 43.45 kB / 1.368 GB, free: 1.281 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.182e-05/1.286, allocations: 23.8 kB / 1.368 GB, free: 1.262 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/1.286, allocations: 3.938 kB / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/1.286, allocations: 99.44 kB / 1.368 GB, free: 1.148 MB / 0.823 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/1.286, allocations: 0 / 1.368 GB, free: 1.148 MB / 0.823 GB Notification: Performance of matching and sorting (n=9): time 0.0002315/1.286, allocations: 131.3 kB / 1.368 GB, free: 1.023 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/1.286, allocations: 81.11 kB / 1.368 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.19e-05/1.286, allocations: 111.1 kB / 1.369 GB, free: 0.8164 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/1.287, allocations: 25.7 kB / 1.369 GB, free: 0.7852 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.436e-05/1.287, allocations: 87.39 kB / 1.369 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/1.287, allocations: 15.31 kB / 1.369 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/1.287, allocations: 0 / 1.369 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001013/1.287, allocations: 317.8 kB / 1.369 GB, free: 380 kB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.144e-05/1.287, allocations: 23.31 kB / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/1.287, allocations: 35.33 kB / 1.369 GB, free: 324 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.784e-05/1.287, allocations: 44.39 kB / 1.369 GB, free: 280 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.287, allocations: 4 kB / 1.369 GB, free: 276 kB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001388/1.287, allocations: 122.7 kB / 1.369 GB, free: 156 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/1.287, allocations: 33.7 kB / 1.369 GB, free: 116 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.287, allocations: 0 / 1.369 GB, free: 116 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/1.287, allocations: 3.938 kB / 1.369 GB, free: 112 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.638e-05/1.287, allocations: 7.984 kB / 1.369 GB, free: 104 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/1.287, allocations: 12.34 kB / 1.369 GB, free: 92 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.704e-05/1.287, allocations: 15.12 kB / 1.369 GB, free: 80 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/1.287, allocations: 4 kB / 1.369 GB, free: 76 kB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001036/1.287, allocations: 137.9 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/1.287, allocations: 4 kB / 1.369 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.155e-05/1.287, allocations: 11.69 kB / 1.369 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/1.287, allocations: 0 / 1.369 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/1.287, allocations: 0 / 1.369 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/1.287, allocations: 7.953 kB / 1.369 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/1.288, allocations: 396 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/1.288, allocations: 0 / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.249e-05/1.288, allocations: 11.92 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/1.288, allocations: 0 / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/1.288, allocations: 3.438 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/1.288, allocations: 4.031 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.288, allocations: 3.984 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/1.288, allocations: 227.5 kB / 1.37 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/1.288, allocations: 81.02 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/1.288, allocations: 4 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-05/1.288, allocations: 8.078 kB / 1.37 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/1.288, allocations: 22.94 kB / 1.37 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/1.288, allocations: 4 kB / 1.37 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.372e-05/1.288, allocations: 87.09 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.288, allocations: 4 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002171/1.289, allocations: 12 kB / 1.37 GB, free: 15.01 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0004582/1.289, allocations: 0.7593 MB / 1.371 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001605/1.289, allocations: 108.9 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.289, allocations: 128 / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.629e-05/1.289, allocations: 97.95 kB / 1.371 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/1.29, allocations: 17 kB / 1.371 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/1.29, allocations: 143.8 kB / 1.371 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/1.29, allocations: 0.6887 MB / 1.372 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.051e-05/1.29, allocations: 4 kB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.307e-05/1.29, allocations: 15 kB / 1.372 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of SimCode: time 3.6e-07/1.29, allocations: 4 kB / 1.372 GB, free: 13.13 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0114/1.302, allocations: 1.616 MB / 1.374 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.302, allocations: 149.7 kB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.487/2.789, allocations: 0 / 1.374 GB, free: 11.43 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat does not exist to compare? outputFormat=mat