Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.004336/0.004336, allocations: 102 kB / 15.73 MB, free: 6.062 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.001258/0.001258, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.777/2.777, allocations: 482.4 MB / 0.7548 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 73.81 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2876, allocations: 162.2 MB / 1.242 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002125/0.2898, allocations: 0.8581 MB / 1.242 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.291, allocations: 0.8701 MB / 1.243 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.2911, allocations: 0 / 1.243 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.272e-05/0.2912, allocations: 15.8 kB / 1.243 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.515e-05/0.2913, allocations: 19.81 kB / 1.243 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.2915, allocations: 39.94 kB / 1.243 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.2917, allocations: 111.6 kB / 1.243 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.2918, allocations: 29.09 kB / 1.243 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.292, allocations: 55.84 kB / 1.243 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.2921, allocations: 55.75 kB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2921, allocations: 12 kB / 1.244 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.29e-05/0.2922, allocations: 8 kB / 1.244 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.59e-05/0.2922, allocations: 23.91 kB / 1.244 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.337e-05/0.2923, allocations: 47.73 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.2925, allocations: 131.6 kB / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2925, allocations: 0 / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2925, allocations: 0 / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.2925, allocations: 0 / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007525/0.2933, allocations: 450.8 kB / 1.244 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.2933, allocations: 12.03 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.2934, allocations: 34.75 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.2934, allocations: 16.84 kB / 1.244 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.2939, allocations: 250.5 kB / 1.244 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.294, allocations: 12.31 kB / 1.244 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.294, allocations: 4.375 kB / 1.244 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.2943, allocations: 120.5 kB / 1.245 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.2943, allocations: 4 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.2944, allocations: 4 kB / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.2944, allocations: 0 / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.2947, allocations: 75.86 kB / 1.245 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006661/0.2954, allocations: 0.5009 MB / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.2956, allocations: 111.8 kB / 1.245 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.2958, allocations: 60.08 kB / 1.245 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.2959, allocations: 4 kB / 1.245 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.2959, allocations: 34.56 kB / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.2959, allocations: 0 / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.000634/0.2965, allocations: 161.5 kB / 1.246 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.2966, allocations: 106.8 kB / 1.246 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.2968, allocations: 143.9 kB / 1.246 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.2968, allocations: 33.69 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.198e-05/0.2969, allocations: 104.6 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.2969, allocations: 31.78 kB / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/0.297, allocations: 25.7 kB / 1.246 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.2972, allocations: 330.8 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.2973, allocations: 43.97 kB / 1.246 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.2975, allocations: 85.05 kB / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.2978, allocations: 94.45 kB / 1.246 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2979, allocations: 0 / 1.246 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004009/0.2983, allocations: 137.5 kB / 1.247 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2983, allocations: 7.984 kB / 1.247 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2983, allocations: 4 kB / 1.247 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2983, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2985, allocations: 19.98 kB / 1.247 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.2985, allocations: 4 kB / 1.247 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.2986, allocations: 11.98 kB / 1.247 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.2986, allocations: 11.98 kB / 1.247 GB, free: 3.656 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001086/0.2988, allocations: 130.2 kB / 1.247 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.846e-05/0.2988, allocations: 15.91 kB / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.2991, allocations: 81.89 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.2991, allocations: 4 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2991, allocations: 384 / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2991, allocations: 0 / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.2995, allocations: 209.6 kB / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2995, allocations: 0 / 1.247 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2996, allocations: 31.91 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.2996, allocations: 3.984 kB / 1.247 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.2996, allocations: 0 / 1.247 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.2997, allocations: 4 kB / 1.247 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2997, allocations: 0 / 1.247 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.3001, allocations: 377.9 kB / 1.247 GB, free: 2.73 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.316e-05/0.3002, allocations: 93.02 kB / 1.248 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.3002, allocations: 4 kB / 1.248 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.3005, allocations: 15.98 kB / 1.248 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.008e-05/0.3005, allocations: 27.95 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.3006, allocations: 7.938 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.863e-05/0.3007, allocations: 109.5 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.944e-06/0.3007, allocations: 0 / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003294/0.301, allocations: 23.94 kB / 1.248 GB, free: 2.438 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0008411/0.3018, allocations: 0.9101 MB / 1.249 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003937/0.3022, allocations: 99.86 kB / 1.249 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3023, allocations: 0 / 1.249 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.3024, allocations: 47.97 kB / 1.249 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.3029, allocations: 21.95 kB / 1.249 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.3052, allocations: 1.799 MB / 1.251 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3055, allocations: 0.704 MB / 1.251 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.996e-05/0.3056, allocations: 16.64 kB / 1.251 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.3057, allocations: 31.42 kB / 1.251 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3057, allocations: 0 / 1.251 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.3276, allocations: 2.693 MB / 1.254 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/8.15, allocations: 21.12 kB / 1.254 GB, free: 12.04 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches