Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_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.00871/0.00871, allocations: 97.89 kB / 15.73 MB, free: 5.996 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.002025/0.002025, allocations: 184.8 kB / 16.67 MB, free: 5.926 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.537/2.537, allocations: 437 MB / 0.7105 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 67.91 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2573, allocations: 151.6 MB / 1.166 GB, free: 7.25 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001889/0.2592, allocations: 0.8387 MB / 1.167 GB, free: 6.41 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.2603, allocations: 0.8935 MB / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.095e-05/0.2604, allocations: 0 / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.541e-05/0.2604, allocations: 7.875 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.697e-05/0.2606, allocations: 19.8 kB / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.2608, allocations: 39.88 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.2609, allocations: 115.6 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.261, allocations: 29.09 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.2612, allocations: 55.78 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.286e-05/0.2613, allocations: 55.75 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.2613, allocations: 8 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.893e-05/0.2614, allocations: 8 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.2614, allocations: 27.91 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.2615, allocations: 51.73 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.2616, allocations: 119.8 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2616, allocations: 3.938 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2616, allocations: 3.938 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2617, allocations: 0 / 1.168 GB, free: 4.965 MB / 0.92 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.0006651/0.2623, allocations: 442.8 kB / 1.169 GB, free: 4.48 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2624, allocations: 16.03 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.342e-05/0.2624, allocations: 34.75 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.2625, allocations: 20.78 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.263, allocations: 248.3 kB / 1.169 GB, free: 4.121 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.263, allocations: 4.375 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.263, allocations: 12.38 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.2633, allocations: 124.5 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2633, allocations: 3.984 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.2633, allocations: 0 / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.2634, allocations: 7.984 kB / 1.169 GB, free: 3.957 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2636, allocations: 71.94 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005918/0.2642, allocations: 0.497 MB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.2645, allocations: 115.8 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.2647, allocations: 58.59 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.2647, allocations: 0 / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.2647, allocations: 38.5 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.2647, allocations: 0 / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0005824/0.2653, allocations: 153.5 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2654, allocations: 115 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.2655, allocations: 149.6 kB / 1.17 GB, free: 2.633 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.2655, allocations: 29.7 kB / 1.17 GB, free: 2.598 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.188e-05/0.2656, allocations: 108.3 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.2656, allocations: 23.78 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.2657, allocations: 33.7 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.2658, allocations: 322.8 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.266, allocations: 43.97 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.2661, allocations: 92.98 kB / 1.171 GB, free: 1.945 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.2664, allocations: 90.52 kB / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2664, allocations: 0 / 1.171 GB, free: 1.848 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003644/0.2668, allocations: 137.5 kB / 1.171 GB, free: 1.707 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2668, allocations: 8 kB / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2668, allocations: 0 / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2669, allocations: 0 / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.267, allocations: 27.91 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.267, allocations: 4 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.2671, allocations: 15.98 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2672, allocations: 4 kB / 1.171 GB, free: 1.648 MB / 0.92 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 9.427e-05/0.2673, allocations: 127.7 kB / 1.171 GB, free: 1.516 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.2673, allocations: 12.23 kB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.2676, allocations: 105.8 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2676, allocations: 0 / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2676, allocations: 0 / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2676, allocations: 0 / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.2679, allocations: 205.6 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2679, allocations: 4 kB / 1.172 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.2681, allocations: 19.97 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.2681, allocations: 0 / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.2681, allocations: 4 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.2681, allocations: 4 kB / 1.172 GB, free: 1.109 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2681, allocations: 0 / 1.172 GB, free: 1.109 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.2685, allocations: 369.9 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.2686, allocations: 93.02 kB / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.2686, allocations: 12.06 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.2688, allocations: 11.98 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.2689, allocations: 23.95 kB / 1.172 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.2689, allocations: 7.938 kB / 1.172 GB, free: 0.5664 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.976e-05/0.269, allocations: 116.1 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.269, allocations: 0 / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003306/0.2693, allocations: 12 kB / 1.172 GB, free: 452 kB / 0.92 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.0007883/0.2701, allocations: 0.914 MB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004035/0.2706, allocations: 95.86 kB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2706, allocations: 7.938 kB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.2708, allocations: 47.91 kB / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.2712, allocations: 17.94 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.2734, allocations: 1.797 MB / 1.175 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.2737, allocations: 0.7002 MB / 1.176 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.45e-05/0.2738, allocations: 20.64 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.642e-05/0.2739, allocations: 35.53 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.2739, allocations: 0 / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.3081, allocations: 2.703 MB / 1.179 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/7.807, allocations: 11.95 kB / 1.179 GB, free: 10.04 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.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_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches