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.208/2.208, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001067/0.001067, allocations: 184 kB / 0.4901 GB, free: 2.23 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.43/1.43, allocations: 223.1 MB / 0.7992 GB, free: 14.77 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.0009041/0.000904, allocations: 96.27 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003913/0.0003911, allocations: 10.78 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.284, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1934/0.4775, allocations: 150.6 MB / 1.376 GB, free: 2.898 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.4779, allocations: 71.97 kB / 1.376 GB, free: 2.828 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003604/0.4815, allocations: 1.235 MB / 1.378 GB, free: 1.586 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.814e-06/0.4815, allocations: 0 / 1.378 GB, free: 1.586 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.4815, allocations: 0 / 1.378 GB, free: 1.586 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.0005615/0.4821, allocations: 393 kB / 1.378 GB, free: 1.148 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4821, allocations: 8.562 kB / 1.378 GB, free: 1.141 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.4822, allocations: 42.55 kB / 1.378 GB, free: 1.09 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.4822, allocations: 7.859 kB / 1.378 GB, free: 1.082 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.4824, allocations: 171 kB / 1.378 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4824, allocations: 3.938 kB / 1.378 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.4824, allocations: 11.94 kB / 1.378 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.4825, allocations: 53.67 kB / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.4825, allocations: 0 / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.4826, allocations: 0 / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4826, allocations: 0 / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.912e-05/0.4826, allocations: 20 kB / 1.378 GB, free: 0.7812 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000434/0.4831, allocations: 268.8 kB / 1.379 GB, free: 480 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.243e-05/0.4832, allocations: 42.52 kB / 1.379 GB, free: 428 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.4832, allocations: 4 kB / 1.379 GB, free: 424 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/0.4834, allocations: 101.3 kB / 1.379 GB, free: 304 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.4834, allocations: 0 / 1.379 GB, free: 304 kB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.0003626/0.4838, allocations: 220.3 kB / 1.379 GB, free: 52 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.4838, allocations: 85.06 kB / 1.379 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.4839, allocations: 101 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.484, allocations: 37.7 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.737e-05/0.484, allocations: 81.95 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.4841, allocations: 19.8 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/0.4841, allocations: 0 / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4842, allocations: 318.8 kB / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.408e-05/0.4842, allocations: 19.92 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.525e-05/0.4843, allocations: 38.5 kB / 1.38 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.514e-05/0.4844, allocations: 53.69 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4844, allocations: 0 / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001576/0.4845, allocations: 119.2 kB / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.4846, allocations: 37.7 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.4846, allocations: 0 / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.4846, allocations: 4 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.156e-05/0.4846, allocations: 3.984 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.4847, allocations: 8.328 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.4847, allocations: 8.062 kB / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.4847, allocations: 4 kB / 1.38 GB, free: 15.05 MB / 0.8855 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 0.0001142/0.4849, allocations: 151.5 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.4849, allocations: 11.91 kB / 1.38 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.4849, allocations: 12.38 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.4849, allocations: 4 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4849, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.485, allocations: 3.953 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004163/0.4854, allocations: 400.6 kB / 1.38 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4854, allocations: 4 kB / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-06/0.4854, allocations: 0 / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4854, allocations: 0 / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.4854, allocations: 0 / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.4854, allocations: 7.953 kB / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4854, allocations: 0 / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.4857, allocations: 229.1 kB / 1.381 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.4857, allocations: 85.11 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.4858, allocations: 0 / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.4859, allocations: 11.98 kB / 1.381 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.4859, allocations: 15.92 kB / 1.381 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.486, allocations: 8 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.605e-05/0.486, allocations: 95.41 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.486, allocations: 0 / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002219/0.4862, allocations: 12 kB / 1.381 GB, free: 13.91 MB / 0.8855 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.0004918/0.4867, allocations: 0.7694 MB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001775/0.4869, allocations: 119.3 kB / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4869, allocations: 0 / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.33e-05/0.487, allocations: 91.39 kB / 1.382 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.4873, allocations: 20.98 kB / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008967/0.4882, allocations: 0.7923 MB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.4884, allocations: 0.6887 MB / 1.383 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.69e-05/0.4885, allocations: 0 / 1.383 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.4885, allocations: 15.44 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of SimCode: time 4.51e-07/0.4885, allocations: 0 / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0123/0.5008, allocations: 1.587 MB / 1.385 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/0.5011, allocations: 179.8 kB / 1.385 GB, free: 9.578 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.133, allocations: 0 / 1.385 GB, free: 9.578 MB / 0.8855 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