Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_11_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.001212/0.001212, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 194.3 kB / 16.53 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.622/2.622, allocations: 469.8 MB / 0.7424 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 67.58 kB / 0.9087 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2702, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00209/0.2723, allocations: 0.8607 MB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2733, allocations: 0.8836 MB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.2734, allocations: 0 / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.168e-05/0.2734, allocations: 11.86 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.631e-05/0.2735, allocations: 23.75 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001623/0.2737, allocations: 35.94 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.2739, allocations: 115.7 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.274, allocations: 21.12 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.2741, allocations: 59.77 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.563e-05/0.2742, allocations: 55.75 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.2742, allocations: 8 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.2742, allocations: 12 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.2743, allocations: 27.91 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.685e-05/0.2744, allocations: 47.72 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.2745, allocations: 119.8 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2745, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2745, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.828e-06/0.2745, allocations: 0 / 1.066 GB, free: 11.9 MB / 0.8262 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.0006777/0.2752, allocations: 434.9 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.2752, allocations: 16.02 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.812e-05/0.2753, allocations: 34.75 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.2753, allocations: 16.75 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.2758, allocations: 256.2 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.2759, allocations: 4.375 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.2759, allocations: 12.38 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.2762, allocations: 112.5 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.2762, allocations: 0 / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.2762, allocations: 0 / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.2762, allocations: 8 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.2765, allocations: 75.86 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006013/0.2771, allocations: 0.4931 MB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.2774, allocations: 115.8 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.2775, allocations: 54.61 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.2775, allocations: 4.062 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.2776, allocations: 42.55 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.193e-06/0.2776, allocations: 3.938 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005741/0.2782, allocations: 161.3 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.2782, allocations: 106.8 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.2784, allocations: 144.9 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.2784, allocations: 37.89 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.2785, allocations: 108.3 kB / 1.068 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.2785, allocations: 27.64 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.2786, allocations: 25.72 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.2787, allocations: 326.8 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.2789, allocations: 43.89 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/0.2791, allocations: 85.06 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.2794, allocations: 90.73 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2794, allocations: 0 / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000367/0.2797, allocations: 149.4 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.2798, allocations: 4 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2798, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.2798, allocations: 0 / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.2799, allocations: 27.91 kB / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.2799, allocations: 0 / 1.069 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2801, allocations: 28.05 kB / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-06/0.2801, allocations: 0 / 1.069 GB, free: 8.586 MB / 0.8262 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.0001047/0.2802, allocations: 123.2 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.2802, allocations: 7.906 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.2805, allocations: 93.83 kB / 1.069 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2805, allocations: 0 / 1.069 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2805, allocations: 4 kB / 1.069 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2805, allocations: 7.984 kB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003099/0.2808, allocations: 201.5 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2808, allocations: 0 / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.281, allocations: 15.98 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.281, allocations: 0 / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.281, allocations: 7.984 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.281, allocations: 0 / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.281, allocations: 0 / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.2814, allocations: 377.8 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.2815, allocations: 92.95 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.2815, allocations: 3.984 kB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2817, allocations: 15.98 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.2818, allocations: 23.97 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.2818, allocations: 7.922 kB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.618e-05/0.2819, allocations: 111.3 kB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2819, allocations: 3.938 kB / 1.07 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002979/0.2822, allocations: 15.91 kB / 1.07 GB, free: 7.391 MB / 0.8262 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.0007836/0.283, allocations: 0.9023 MB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003668/0.2834, allocations: 111.8 kB / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2834, allocations: 0 / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.2835, allocations: 51.89 kB / 1.071 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.284, allocations: 21.5 kB / 1.071 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.2861, allocations: 1.787 MB / 1.073 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.2865, allocations: 0.7041 MB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.616e-05/0.2866, allocations: 20.62 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.2866, allocations: 35.42 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2866, allocations: 0 / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.3114, allocations: 2.669 MB / 1.076 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.221/8.533, allocations: 3.938 kB / 1.076 GB, free: 1.012 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches