Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.GreaterThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold",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.007817/0.007817, allocations: 101.8 kB / 15.73 MB, free: 6.441 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.001828/0.001828, allocations: 196 kB / 16.67 MB, free: 6.352 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.707/2.707, allocations: 469.4 MB / 0.7422 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 71.88 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2695, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold): time 0.00184/0.2714, allocations: 0.8285 MB / 1.221 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009802/0.2724, allocations: 0.8585 MB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.782e-05/0.2725, allocations: 15.88 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.2726, allocations: 11.88 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.966e-05/0.2727, allocations: 7.875 kB / 1.221 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.2729, allocations: 31.89 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.273, allocations: 75.77 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.2731, allocations: 31.98 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.476e-05/0.2732, allocations: 31.86 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.2733, allocations: 35.83 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.2733, allocations: 4 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.2734, allocations: 8 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.364e-05/0.2734, allocations: 15.86 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.042e-05/0.2734, allocations: 31.81 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.2736, allocations: 71.67 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.2736, allocations: 4 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2736, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.2736, allocations: 0 / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005364/0.2741, allocations: 403 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2742, allocations: 8.031 kB / 1.222 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.2742, allocations: 30.75 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.296e-05/0.2743, allocations: 12.89 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.2745, allocations: 204.2 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.2745, allocations: 4.312 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.2746, allocations: 4.375 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.2747, allocations: 62.23 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2747, allocations: 7.938 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.2747, allocations: 0 / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.2748, allocations: 0 / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.2749, allocations: 31.98 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.2753, allocations: 332.6 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.2755, allocations: 54.58 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.411e-05/0.2756, allocations: 17 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.2756, allocations: 4 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.2756, allocations: 34.56 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2756, allocations: 0 / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0002493/0.2759, allocations: 69.67 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.2759, allocations: 55.39 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.276, allocations: 139.6 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.2761, allocations: 29.7 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.309e-05/0.2761, allocations: 96.14 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.2761, allocations: 15.88 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.2762, allocations: 13.72 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.2763, allocations: 330.7 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.203e-05/0.2763, allocations: 12 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.2764, allocations: 15.98 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.64e-05/0.2765, allocations: 28.84 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2765, allocations: 0 / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000142/0.2767, allocations: 73.62 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2767, allocations: 4 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2767, allocations: 0 / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.2767, allocations: 0 / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.606e-05/0.2768, allocations: 7.938 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2768, allocations: 0 / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.549e-05/0.2769, allocations: 15.92 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.2769, allocations: 3.938 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (greHys.greHys.y,$PRE.greHys.greHys.y,gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.527e-05/0.277, allocations: 126.3 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.277, allocations: 11.94 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.819e-05/0.2771, allocations: 8.25 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2771, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2771, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2771, allocations: 0 / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.2773, allocations: 181.6 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.2773, allocations: 0 / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.563e-05/0.2773, allocations: 7.984 kB / 1.224 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2773, allocations: 4 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.2773, allocations: 0 / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2773, allocations: 0 / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2774, allocations: 0 / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.2775, allocations: 163.4 kB / 1.224 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.2776, allocations: 85.44 kB / 1.224 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.2776, allocations: 4 kB / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.2777, allocations: 15.98 kB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.2778, allocations: 11.98 kB / 1.224 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.2778, allocations: 0 / 1.224 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.724e-05/0.2779, allocations: 105.1 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2779, allocations: 0 / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002283/0.2781, allocations: 8 kB / 1.225 GB, free: 9.406 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (gre.y,greHys.greHys.y) * Number of discrete states: 1 (greHys.greHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000439/0.2785, allocations: 0.7007 MB / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001348/0.2787, allocations: 31.92 kB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2787, allocations: 4 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.455e-05/0.2788, allocations: 19.92 kB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.279, allocations: 9.547 kB / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.2803, allocations: 1.389 MB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.2806, allocations: 0.6885 MB / 1.227 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.987e-05/0.2806, allocations: 7.984 kB / 1.227 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.133e-05/0.2807, allocations: 23.44 kB / 1.227 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.2807, allocations: 0 / 1.227 GB, free: 6.406 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.2979, allocations: 1.991 MB / 1.229 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.284/7.582, allocations: 17.98 kB / 1.229 GB, free: 4.516 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_GreaterThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches