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.007671/0.007671, allocations: 95.38 kB / 15.73 MB, free: 6.051 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.00187/0.00187, allocations: 204.5 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.497/2.497, allocations: 437.1 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.91 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2628, allocations: 151.6 MB / 1.166 GB, free: 7.238 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001944/0.2648, allocations: 0.8543 MB / 1.167 GB, free: 6.383 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.2659, allocations: 0.8856 MB / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.236e-05/0.266, allocations: 0 / 1.168 GB, free: 5.484 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.399e-05/0.266, allocations: 11.86 kB / 1.168 GB, free: 5.473 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.2662, allocations: 15.81 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.2664, allocations: 43.88 kB / 1.168 GB, free: 5.414 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.2666, allocations: 115.7 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.2667, allocations: 25.05 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.2669, allocations: 51.83 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.601e-05/0.267, allocations: 55.7 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.267, allocations: 12 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.891e-05/0.2671, allocations: 12 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.597e-05/0.2671, allocations: 27.89 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.783e-05/0.2672, allocations: 47.73 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.2673, allocations: 115.8 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2673, allocations: 0 / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.785e-06/0.2674, allocations: 0 / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.2674, allocations: 3.938 kB / 1.168 GB, free: 4.953 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.0007114/0.2681, allocations: 446.8 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2681, allocations: 12.03 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.958e-05/0.2682, allocations: 34.75 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.719e-05/0.2683, allocations: 20.83 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.2688, allocations: 252.2 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2688, allocations: 12.38 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.2689, allocations: 8.375 kB / 1.169 GB, free: 4.086 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.2691, allocations: 120.5 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2692, allocations: 0 / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.2692, allocations: 4 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.2692, allocations: 4 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.2695, allocations: 75.86 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007102/0.2702, allocations: 0.5009 MB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.2705, allocations: 115.8 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.2707, allocations: 54.61 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.2707, allocations: 4 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.2708, allocations: 30.56 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2708, allocations: 4 kB / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0006594/0.2714, allocations: 165.6 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.2715, allocations: 106.8 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2716, allocations: 151.9 kB / 1.17 GB, free: 2.609 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.2717, allocations: 25.7 kB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.2717, allocations: 112.3 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.344e-05/0.2718, allocations: 23.8 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.2718, allocations: 25.7 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.272, allocations: 330.8 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.2721, allocations: 39.97 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.2723, allocations: 85.05 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002956/0.2726, allocations: 106.4 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2726, allocations: 0 / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003775/0.273, allocations: 137.5 kB / 1.171 GB, free: 1.68 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.273, allocations: 10.03 kB / 1.171 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2731, allocations: 4 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2731, allocations: 0 / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2732, allocations: 23.92 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2732, allocations: 0 / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.2734, allocations: 19.97 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.2734, allocations: 4 kB / 1.171 GB, free: 1.621 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 0.0001081/0.2735, allocations: 125.8 kB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.2736, allocations: 15.91 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.2739, allocations: 89.83 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.2739, allocations: 0 / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2739, allocations: 0 / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2739, allocations: 4.375 kB / 1.172 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003321/0.2742, allocations: 209.5 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2743, allocations: 0 / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.2744, allocations: 15.98 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.2744, allocations: 4 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.2744, allocations: 8 kB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2744, allocations: 0 / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.2744, allocations: 3.984 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000467/0.2749, allocations: 377.9 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.275, allocations: 85.02 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.275, allocations: 4 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.2752, allocations: 19.97 kB / 1.172 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.2753, allocations: 19.97 kB / 1.172 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.2753, allocations: 7.938 kB / 1.172 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001034/0.2754, allocations: 117.1 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2754, allocations: 0 / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003327/0.2758, allocations: 16 kB / 1.172 GB, free: 428 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.0007497/0.2765, allocations: 0.9063 MB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003734/0.2769, allocations: 99.86 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.2769, allocations: 4 kB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.2771, allocations: 47.91 kB / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000477/0.2776, allocations: 31.8 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.2799, allocations: 1.797 MB / 1.175 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.2802, allocations: 0.6963 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.344e-05/0.2803, allocations: 16.64 kB / 1.176 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.321e-05/0.2804, allocations: 39.41 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.2804, allocations: 0 / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.2981, allocations: 2.691 MB / 1.179 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.752, allocations: 11.92 kB / 1.179 GB, free: 10.03 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