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.725/2.725, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001284/0.001284, allocations: 191.5 kB / 0.4902 GB, free: 2.227 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.652/1.652, allocations: 223.1 MB / 0.7992 GB, free: 15.66 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.0009109/0.0009113, allocations: 106 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005808/0.0005809, allocations: 15.97 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2847, allocations: 143 MB / 1.229 GB, free: 85.35 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1983/0.4831, allocations: 150.8 MB / 1.377 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4834, allocations: 71.95 kB / 1.377 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01334/0.4967, allocations: 4.371 MB / 1.381 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.076e-06/0.4968, allocations: 0 / 1.381 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.4968, allocations: 4 kB / 1.381 GB, free: 9.922 MB / 0.8855 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.0009543/0.4978, allocations: 0.5449 MB / 1.381 GB, free: 9.316 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.4978, allocations: 8.562 kB / 1.381 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.9e-05/0.4979, allocations: 38.56 kB / 1.381 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.498, allocations: 27.67 kB / 1.381 GB, free: 9.234 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.4982, allocations: 202.8 kB / 1.382 GB, free: 8.996 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.4983, allocations: 12 kB / 1.382 GB, free: 8.984 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.4983, allocations: 19.98 kB / 1.382 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.4987, allocations: 141 kB / 1.382 GB, free: 8.812 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.4987, allocations: 3.953 kB / 1.382 GB, free: 8.809 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.4987, allocations: 4 kB / 1.382 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.4987, allocations: 4 kB / 1.382 GB, free: 8.801 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.499, allocations: 95.88 kB / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009955/0.5, allocations: 0.6765 MB / 1.383 GB, free: 7.973 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.5005, allocations: 164 kB / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.5005, allocations: 0 / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.5009, allocations: 157.8 kB / 1.383 GB, free: 7.609 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.5009, allocations: 0 / 1.383 GB, free: 7.609 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0006415/0.5015, allocations: 233.3 kB / 1.383 GB, free: 7.375 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.5016, allocations: 118.7 kB / 1.383 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.5018, allocations: 169.7 kB / 1.383 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.5019, allocations: 37.64 kB / 1.383 GB, free: 7.016 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.502, allocations: 132.5 kB / 1.384 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.5021, allocations: 39.52 kB / 1.384 GB, free: 6.84 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/0.5021, allocations: 0 / 1.384 GB, free: 6.84 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5023, allocations: 338.8 kB / 1.384 GB, free: 6.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.5025, allocations: 107.9 kB / 1.384 GB, free: 6.395 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/0.5029, allocations: 182 kB / 1.384 GB, free: 6.188 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003235/0.5032, allocations: 163.3 kB / 1.384 GB, free: 6.016 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5032, allocations: 0 / 1.384 GB, free: 6.016 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007484/0.504, allocations: 388.6 kB / 1.385 GB, free: 5.617 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.423e-05/0.504, allocations: 67.39 kB / 1.385 GB, free: 5.539 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.5041, allocations: 12.8 kB / 1.385 GB, free: 5.527 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.5041, allocations: 0 / 1.385 GB, free: 5.527 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.5042, allocations: 23.92 kB / 1.385 GB, free: 5.504 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.5042, allocations: 4 kB / 1.385 GB, free: 5.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.5047, allocations: 107.8 kB / 1.385 GB, free: 5.395 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.5047, allocations: 23.98 kB / 1.385 GB, free: 5.371 MB / 0.8855 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 () * Number of clocked 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 0.0001556/0.5049, allocations: 139.1 kB / 1.385 GB, free: 5.227 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.5049, allocations: 31.7 kB / 1.385 GB, free: 5.195 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002908/0.5052, allocations: 106.6 kB / 1.385 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.5053, allocations: 0 / 1.385 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.5053, allocations: 4 kB / 1.385 GB, free: 5.086 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.5053, allocations: 0 / 1.385 GB, free: 5.086 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.5055, allocations: 245.5 kB / 1.385 GB, free: 4.797 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.5056, allocations: 4 kB / 1.385 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.713e-05/0.5057, allocations: 19.92 kB / 1.385 GB, free: 4.773 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.5057, allocations: 3.984 kB / 1.385 GB, free: 4.77 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.5057, allocations: 4 kB / 1.385 GB, free: 4.766 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.5057, allocations: 4 kB / 1.385 GB, free: 4.762 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.5057, allocations: 4 kB / 1.385 GB, free: 4.758 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004191/0.5061, allocations: 237.5 kB / 1.386 GB, free: 4.492 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.554e-05/0.5062, allocations: 96.84 kB / 1.386 GB, free: 4.379 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.617e-05/0.5063, allocations: 8 kB / 1.386 GB, free: 4.371 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.5064, allocations: 31.91 kB / 1.386 GB, free: 4.34 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.479e-05/0.5065, allocations: 31.91 kB / 1.386 GB, free: 4.309 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.5065, allocations: 8 kB / 1.386 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001408/0.5067, allocations: 147.9 kB / 1.386 GB, free: 4.156 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5067, allocations: 0 / 1.386 GB, free: 4.156 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003171/0.507, allocations: 55.98 kB / 1.386 GB, free: 4.102 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0008899/0.5079, allocations: 0.932 MB / 1.387 GB, free: 3.129 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000638/0.5085, allocations: 350.6 kB / 1.387 GB, free: 2.762 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.5086, allocations: 0 / 1.387 GB, free: 2.762 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.5088, allocations: 76.66 kB / 1.387 GB, free: 2.688 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.509, allocations: 44.06 kB / 1.387 GB, free: 2.645 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.5104, allocations: 1.493 MB / 1.389 GB, free: 1.066 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.5108, allocations: 0.7322 MB / 1.39 GB, free: 316 kB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.388e-05/0.5109, allocations: 21.53 kB / 1.39 GB, free: 292 kB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.511, allocations: 59.41 kB / 1.39 GB, free: 232 kB / 0.8855 GB Notification: Performance of SimCode: time 6.181e-06/0.511, allocations: 0 / 1.39 GB, free: 232 kB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.5293, allocations: 4.73 MB / 1.394 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.5296, allocations: 198.5 kB / 1.395 GB, free: 11.43 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.377, allocations: 2.391 kB / 1.395 GB, free: 11.43 MB / 0.9011 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