Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.516/2.516, allocations: 390.5 MB / 398 MB, free: 10.93 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.001043/0.001043, allocations: 180.1 kB / 491.2 MB, free: 1.598 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.697/1.697, allocations: 221.5 MB / 0.7868 GB, free: 13.24 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.001045/0.001045, allocations: 91.64 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.923e-05/3.844e-05, allocations: 9.953 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2738, allocations: 143 MB / 1.212 GB, free: 39.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8801/1.154, allocations: 150 MB / 1.359 GB, free: 17.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/1.154, allocations: 76.98 kB / 1.359 GB, free: 17.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01198/1.166, allocations: 4.31 MB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.422e-06/1.166, allocations: 0 / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.637e-06/1.166, allocations: 3.781 kB / 1.363 GB, free: 32.86 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.0005658/1.167, allocations: 0.522 MB / 1.364 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/1.167, allocations: 7.75 kB / 1.364 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.006e-05/1.167, allocations: 28.44 kB / 1.364 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/1.167, allocations: 207 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.167, allocations: 8.703 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/1.167, allocations: 14.03 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001214/1.167, allocations: 51.7 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/1.168, allocations: 113.9 kB / 1.364 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/1.168, allocations: 0 / 1.364 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/1.168, allocations: 6.781 kB / 1.364 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/1.168, allocations: 3.938 kB / 1.364 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/1.168, allocations: 0.6509 MB / 1.365 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/1.169, allocations: 125.5 kB / 1.365 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.182e-05/1.169, allocations: 47.84 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/1.169, allocations: 7.312 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/1.169, allocations: 141.9 kB / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/1.169, allocations: 0 / 1.365 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002614/1.169, allocations: 128.4 kB / 1.365 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/1.169, allocations: 114.9 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/1.169, allocations: 165.3 kB / 1.366 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/1.169, allocations: 33.23 kB / 1.366 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/1.169, allocations: 123.9 kB / 1.366 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/1.169, allocations: 41.38 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.477e-05/1.17, allocations: 3.688 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.591e-05/1.17, allocations: 327.5 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/1.17, allocations: 84.08 kB / 1.366 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/1.17, allocations: 158.6 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/1.17, allocations: 99.45 kB / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.17, allocations: 0 / 1.366 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000561/1.171, allocations: 288.2 kB / 1.367 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.319e-05/1.171, allocations: 74.81 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.171, allocations: 0 / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/1.171, allocations: 7.781 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.962e-05/1.171, allocations: 18.41 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/1.171, allocations: 10.55 kB / 1.367 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/1.171, allocations: 100.5 kB / 1.367 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/1.172, allocations: 17.55 kB / 1.367 GB, free: 30.55 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 8.729e-05/1.172, allocations: 120.2 kB / 1.367 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001626/1.172, allocations: 137.7 kB / 1.367 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/1.172, allocations: 18.08 kB / 1.367 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/1.172, allocations: 74.86 kB / 1.367 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/1.172, allocations: 0 / 1.367 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.172, allocations: 0.625 kB / 1.367 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/1.172, allocations: 3.875 kB / 1.367 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/1.172, allocations: 223 kB / 1.367 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.172, allocations: 7.875 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.03e-05/1.172, allocations: 14.2 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/1.172, allocations: 10.48 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/1.172, allocations: 3.938 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/1.172, allocations: 0 / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.172, allocations: 3.844 kB / 1.367 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/1.172, allocations: 201.1 kB / 1.368 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/1.173, allocations: 92.2 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/1.173, allocations: 3.812 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/1.173, allocations: 22.31 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/1.173, allocations: 31.91 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.363e-05/1.173, allocations: 9.156 kB / 1.368 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.692e-05/1.173, allocations: 143.2 kB / 1.368 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.173, allocations: 0 / 1.368 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002683/1.173, allocations: 46.95 kB / 1.368 GB, free: 29.83 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.0004989/1.174, allocations: 0.8828 MB / 1.369 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003304/1.174, allocations: 298.1 kB / 1.369 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.174, allocations: 0 / 1.369 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.536e-05/1.174, allocations: 57.06 kB / 1.369 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/1.174, allocations: 45.56 kB / 1.369 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005021/1.175, allocations: 244.9 kB / 1.369 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/1.175, allocations: 0.7261 MB / 1.37 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.506e-05/1.175, allocations: 18.73 kB / 1.37 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.368e-05/1.175, allocations: 56.89 kB / 1.37 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.175, allocations: 0 / 1.37 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02166/1.197, allocations: 4.237 MB / 1.374 GB, free: 27.74 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/1.197, allocations: 152.4 kB / 1.374 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.943, allocations: 4 kB / 1.374 GB, free: 27.55 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat does not exist to compare? outputFormat=mat