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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004828/0.004828, allocations: 101.5 kB / 15.73 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 192.6 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.357/2.357, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 73.55 kB / 0.9505 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2666, allocations: 140.4 MB / 1.088 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002211/0.2688, allocations: 1.022 MB / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.2705, allocations: 1.317 MB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.2707, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.058e-05/0.2707, allocations: 15.75 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2709, allocations: 35.7 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007702/0.2717, allocations: 265.7 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003689/0.272, allocations: 343.4 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.2722, allocations: 45.66 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.2724, allocations: 119.7 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.2726, allocations: 127.5 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.755e-05/0.2726, allocations: 32 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.405e-05/0.2727, allocations: 47.98 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.2728, allocations: 35.91 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.2729, allocations: 119.5 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.2733, allocations: 350.6 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2733, allocations: 0 / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2733, allocations: 0 / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.257e-06/0.2733, allocations: 0 / 1.091 GB, free: 14.1 MB / 0.8575 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.0008882/0.2742, allocations: 0.5528 MB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2742, allocations: 11.97 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.2743, allocations: 42.73 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.582e-05/0.2744, allocations: 28.66 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007388/0.2751, allocations: 315.7 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.2752, allocations: 12.38 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.121e-05/0.2752, allocations: 20.38 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2755, allocations: 138.2 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2755, allocations: 4 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.2756, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2756, allocations: 3.938 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.2758, allocations: 75.88 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.2765, allocations: 0.6413 MB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.2769, allocations: 135.8 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.277, allocations: 54.8 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.2771, allocations: 4 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.2773, allocations: 145.7 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.2774, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005465/0.2779, allocations: 205.3 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.278, allocations: 110.8 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.2781, allocations: 198.6 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.2782, allocations: 33.7 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.2783, allocations: 124.4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.2783, allocations: 39.58 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.2784, allocations: 61.67 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.954e-05/0.2786, allocations: 330.8 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.2788, allocations: 87.94 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.2791, allocations: 158 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.2795, allocations: 233.7 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2795, allocations: 4 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006712/0.2801, allocations: 348.8 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.299e-05/0.2802, allocations: 67.52 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2802, allocations: 4 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2803, allocations: 0 / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.803e-05/0.2804, allocations: 23.92 kB / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.2804, allocations: 3.938 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/0.2808, allocations: 71.77 kB / 1.095 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.2808, allocations: 19.98 kB / 1.095 GB, free: 9.453 MB / 0.8575 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,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.281, allocations: 142.7 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/0.281, allocations: 15.81 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.2813, allocations: 90.88 kB / 1.096 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2813, allocations: 4 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2813, allocations: 11.88 kB / 1.096 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.2813, allocations: 8.016 kB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.2816, allocations: 241.4 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2816, allocations: 0 / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.279e-05/0.2817, allocations: 15.98 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.2817, allocations: 4 kB / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.2817, allocations: 0 / 1.096 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.2817, allocations: 4 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2817, allocations: 3.938 kB / 1.096 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.2821, allocations: 194.6 kB / 1.096 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.2821, allocations: 100.8 kB / 1.096 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.2822, allocations: 4 kB / 1.096 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.2823, allocations: 11.98 kB / 1.096 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.2824, allocations: 35.89 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.2824, allocations: 4 kB / 1.096 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000105/0.2825, allocations: 140.2 kB / 1.096 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2825, allocations: 0 / 1.096 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002925/0.2828, allocations: 51.94 kB / 1.096 GB, free: 8.289 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006923/0.2835, allocations: 0.7481 MB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005508/0.2841, allocations: 314.6 kB / 1.097 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.2841, allocations: 4.25 kB / 1.097 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.2843, allocations: 67.91 kB / 1.098 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.2846, allocations: 43.84 kB / 1.098 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003111/0.2877, allocations: 2.302 MB / 1.1 GB, free: 4.621 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.288, allocations: 0.728 MB / 1.101 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.664e-05/0.2881, allocations: 25.48 kB / 1.101 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.172e-05/0.2882, allocations: 63.41 kB / 1.101 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of SimCode: time 3.4e-07/0.2882, allocations: 0 / 1.101 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.3092, allocations: 4.96 MB / 1.105 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.841, allocations: 5.656 kB / 1.105 GB, free: 14.94 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches