Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.218/2.218, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001019/0.001019, allocations: 169 kB / 492.3 MB, free: 0.6211 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.626/1.626, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009881/0.0009881, allocations: 95.52 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.194e-05/5.196e-05, allocations: 15.98 kB / 1.074 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3154, allocations: 142.3 MB / 1.213 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.336, allocations: 149.9 MB / 1.359 GB, free: 19.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/1.336, allocations: 72.59 kB / 1.359 GB, free: 19.09 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01302/1.349, allocations: 4.339 MB / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.854e-06/1.35, allocations: 0 / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.504e-05/1.35, allocations: 3.875 kB / 1.363 GB, free: 34.56 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007526/1.35, allocations: 0.5177 MB / 1.364 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/1.35, allocations: 14.08 kB / 1.364 GB, free: 34.1 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.056e-05/1.35, allocations: 33.69 kB / 1.364 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/1.351, allocations: 37.44 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/1.351, allocations: 205 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/1.351, allocations: 11.16 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.73e-05/1.351, allocations: 20.48 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/1.351, allocations: 124.4 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/1.351, allocations: 0 / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/1.351, allocations: 11.36 kB / 1.364 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/1.351, allocations: 2.859 kB / 1.364 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/1.351, allocations: 57.97 kB / 1.364 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007928/1.352, allocations: 0.6805 MB / 1.365 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/1.352, allocations: 141.3 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.737e-05/1.352, allocations: 46.45 kB / 1.365 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/1.352, allocations: 2.953 kB / 1.365 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/1.353, allocations: 149.6 kB / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.843e-06/1.353, allocations: 0 / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003295/1.353, allocations: 147.6 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/1.353, allocations: 106.7 kB / 1.365 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/1.353, allocations: 169.2 kB / 1.366 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.503e-05/1.353, allocations: 36.77 kB / 1.366 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/1.353, allocations: 131.5 kB / 1.366 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/1.354, allocations: 37.58 kB / 1.366 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/1.354, allocations: 11.47 kB / 1.366 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001513/1.354, allocations: 335.5 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/1.354, allocations: 88.78 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/1.354, allocations: 153.6 kB / 1.366 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/1.354, allocations: 147.3 kB / 1.367 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/1.354, allocations: 3.938 kB / 1.367 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005617/1.355, allocations: 337.7 kB / 1.367 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.627e-05/1.355, allocations: 73.44 kB / 1.367 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/1.355, allocations: 7.953 kB / 1.367 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/1.355, allocations: 4 kB / 1.367 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/1.355, allocations: 22.47 kB / 1.367 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/1.355, allocations: 7.109 kB / 1.367 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/1.356, allocations: 108.2 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/1.356, allocations: 22.02 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.738e-05/1.356, allocations: 126.1 kB / 1.367 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/1.356, allocations: 15.94 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/1.356, allocations: 79.03 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/1.356, allocations: 3.875 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.356, allocations: 4 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.356, allocations: 3.844 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/1.356, allocations: 247.8 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/1.356, allocations: 7.875 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.429e-05/1.356, allocations: 14.67 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/1.356, allocations: 3.875 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/1.356, allocations: 6.172 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/1.356, allocations: 3.938 kB / 1.368 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/1.356, allocations: 3.875 kB / 1.368 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/1.357, allocations: 202.5 kB / 1.368 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.963e-05/1.357, allocations: 91.72 kB / 1.368 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/1.357, allocations: 6.938 kB / 1.368 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/1.357, allocations: 21.17 kB / 1.368 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/1.357, allocations: 33.44 kB / 1.368 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/1.357, allocations: 14.7 kB / 1.368 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001153/1.357, allocations: 144.1 kB / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.357, allocations: 0 / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003039/1.357, allocations: 56.06 kB / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0007164/1.358, allocations: 0.8897 MB / 1.369 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004321/1.358, allocations: 314.4 kB / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/1.359, allocations: 0 / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/1.359, allocations: 69.41 kB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/1.359, allocations: 41.72 kB / 1.369 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006105/1.36, allocations: 267 kB / 1.37 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/1.36, allocations: 0.7234 MB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.434e-05/1.36, allocations: 19.06 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.666e-05/1.36, allocations: 59.05 kB / 1.37 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of SimCode: time 4.3e-07/1.36, allocations: 0 / 1.37 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01554/1.376, allocations: 4.778 MB / 1.375 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000134/1.376, allocations: 167.2 kB / 1.375 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/3.037, allocations: 0 / 1.375 GB, free: 28.91 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat does not exist to compare? outputFormat=mat