Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.219/2.219, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001254/0.001255, allocations: 177.1 kB / 498.1 MB, free: 5.723 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.1 MB / 0.7948 GB, free: 17.9 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.0008323/0.0008323, allocations: 103.9 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003341, allocations: 6.938 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2268, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1655/0.3924, allocations: 149.8 MB / 1.369 GB, free: 12.13 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.3926, allocations: 75.89 kB / 1.369 GB, free: 12.05 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003452/0.3961, allocations: 1.233 MB / 1.37 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3961, allocations: 0 / 1.37 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.3962, allocations: 0 / 1.37 GB, free: 10.81 MB / 0.8698 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.0004635/0.3966, allocations: 388.9 kB / 1.371 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3967, allocations: 12.03 kB / 1.371 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.3967, allocations: 34.56 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.433e-05/0.3968, allocations: 15.86 kB / 1.371 GB, free: 10.31 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.3969, allocations: 163.1 kB / 1.371 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3969, allocations: 0 / 1.371 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.3969, allocations: 4 kB / 1.371 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.397, allocations: 57.67 kB / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.397, allocations: 3.938 kB / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.3971, allocations: 0 / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3971, allocations: 0 / 1.371 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.27e-05/0.3971, allocations: 15.98 kB / 1.371 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.3975, allocations: 276.8 kB / 1.371 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.916e-05/0.3976, allocations: 42.56 kB / 1.371 GB, free: 9.652 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.3976, allocations: 0 / 1.371 GB, free: 9.652 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.3978, allocations: 109 kB / 1.372 GB, free: 9.527 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 2.454e-06/0.3978, allocations: 4 kB / 1.372 GB, free: 9.523 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.0002833/0.3981, allocations: 216.4 kB / 1.372 GB, free: 9.281 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.3981, allocations: 93.05 kB / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.121e-05/0.3982, allocations: 97 kB / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3982, allocations: 29.69 kB / 1.372 GB, free: 9.035 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.216e-05/0.3983, allocations: 92.05 kB / 1.372 GB, free: 8.941 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.3983, allocations: 15.88 kB / 1.372 GB, free: 8.926 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.3983, allocations: 4 kB / 1.372 GB, free: 8.922 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.3984, allocations: 322.8 kB / 1.372 GB, free: 8.598 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.011e-05/0.3984, allocations: 12 kB / 1.372 GB, free: 8.586 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-05/0.3985, allocations: 38.56 kB / 1.372 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.852e-05/0.3985, allocations: 45.7 kB / 1.372 GB, free: 8.488 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3985, allocations: 0 / 1.372 GB, free: 8.488 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001457/0.3987, allocations: 115.7 kB / 1.373 GB, free: 8.363 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.3987, allocations: 41.62 kB / 1.373 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3987, allocations: 8.047 kB / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.3988, allocations: 0 / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.108e-05/0.3988, allocations: 7.984 kB / 1.373 GB, free: 8.301 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.3988, allocations: 3.953 kB / 1.373 GB, free: 8.297 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.098e-05/0.3989, allocations: 19.89 kB / 1.373 GB, free: 8.277 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.3989, allocations: 4 kB / 1.373 GB, free: 8.273 MB / 0.8698 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 () * Number of clocked 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 9.428e-05/0.399, allocations: 143.5 kB / 1.373 GB, free: 8.117 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.399, allocations: 4 kB / 1.373 GB, free: 8.113 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.3991, allocations: 16.36 kB / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.3991, allocations: 0 / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3991, allocations: 0 / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3991, allocations: 3.953 kB / 1.373 GB, free: 8.094 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003601/0.3995, allocations: 396.6 kB / 1.373 GB, free: 7.645 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3995, allocations: 0 / 1.373 GB, free: 7.645 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.788e-06/0.3995, allocations: 7.875 kB / 1.373 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3995, allocations: 4 kB / 1.373 GB, free: 7.633 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3995, allocations: 0 / 1.373 GB, free: 7.633 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3995, allocations: 7.953 kB / 1.373 GB, free: 7.625 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3995, allocations: 0 / 1.373 GB, free: 7.625 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001918/0.3997, allocations: 229.1 kB / 1.373 GB, free: 7.379 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.3998, allocations: 85 kB / 1.374 GB, free: 7.277 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.3998, allocations: 8 kB / 1.374 GB, free: 7.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3999, allocations: 15.92 kB / 1.374 GB, free: 7.254 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.4, allocations: 11.95 kB / 1.374 GB, free: 7.242 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.4, allocations: 8.062 kB / 1.374 GB, free: 7.234 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.398e-05/0.4, allocations: 91.25 kB / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4, allocations: 0 / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002204/0.4003, allocations: 20 kB / 1.374 GB, free: 7.125 MB / 0.8698 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) * Number of clocked states: 0 () * 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.0004135/0.4007, allocations: 0.7581 MB / 1.374 GB, free: 6.332 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.4009, allocations: 119.3 kB / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4009, allocations: 0 / 1.375 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.406e-05/0.4009, allocations: 87.39 kB / 1.375 GB, free: 6.105 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.4012, allocations: 15.94 kB / 1.375 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007971/0.402, allocations: 0.7837 MB / 1.375 GB, free: 5.246 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.4022, allocations: 0.6889 MB / 1.376 GB, free: 4.531 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.936e-05/0.4022, allocations: 8 kB / 1.376 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.685e-05/0.4023, allocations: 23.36 kB / 1.376 GB, free: 4.5 MB / 0.8698 GB Notification: Performance of SimCode: time 2.91e-07/0.4023, allocations: 0 / 1.376 GB, free: 4.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.4147, allocations: 1.566 MB / 1.378 GB, free: 3.062 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000271/0.415, allocations: 184.2 kB / 1.378 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/1.959, allocations: 0 / 1.378 GB, free: 2.812 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat does not exist to compare? outputFormat=mat