Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.008071/0.008071, allocations: 102.5 kB / 15.73 MB, free: 6.035 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.001579/0.001579, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.39/1.39, 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 9.1.3-maint.9.1.x/package.mo): time 2.317/2.317, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 64.94 kB / 0.9504 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3152, allocations: 140.4 MB / 1.088 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.00347/0.3187, allocations: 1.949 MB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0019/0.3207, allocations: 1.119 MB / 1.091 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.3209, allocations: 0 / 1.091 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.3214, allocations: 115.5 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000316/0.3217, allocations: 95.58 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.3222, allocations: 159.5 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.3226, allocations: 215.5 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.3228, allocations: 57.62 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.323, allocations: 103.5 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.3232, allocations: 99.59 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.221e-05/0.3232, allocations: 12 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.3234, allocations: 67.97 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.3235, allocations: 67.69 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.595e-05/0.3236, allocations: 83.42 kB / 1.092 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.3241, allocations: 282.7 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3241, allocations: 4 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3241, allocations: 4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.3241, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001134/0.3253, allocations: 0.541 MB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3253, allocations: 8.031 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.114e-05/0.3254, allocations: 42.73 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.3255, allocations: 24.66 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.3259, allocations: 311.7 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.326, allocations: 12.06 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.326, allocations: 8 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.3262, allocations: 95.89 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.3262, allocations: 0 / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.3262, allocations: 0 / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.3263, allocations: 4 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.3264, allocations: 51.91 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007643/0.3272, allocations: 452.4 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.3274, allocations: 82.64 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.723e-05/0.3275, allocations: 32.89 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.3276, allocations: 4 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.3277, allocations: 83.31 kB / 1.094 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.774e-06/0.3278, allocations: 4 kB / 1.094 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004153/0.3282, allocations: 145.5 kB / 1.094 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.3282, allocations: 55.41 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003998/0.3286, allocations: 367.1 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.3287, allocations: 33.64 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3288, allocations: 152.2 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.3288, allocations: 27.67 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.623e-05/0.3289, allocations: 41.7 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3291, allocations: 338.8 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3292, allocations: 63.97 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.3293, allocations: 75.58 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.3295, allocations: 115 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3296, allocations: 0 / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003529/0.3299, allocations: 203.3 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3299, allocations: 4 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.33, allocations: 3.938 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.33, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.3301, allocations: 23.98 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3301, allocations: 8 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.3303, allocations: 23.92 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.3303, allocations: 4 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,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 (19): * Single equations (assignments): 19 * 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.0001416/0.3305, allocations: 151 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.3305, allocations: 27.69 kB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.715e-05/0.3306, allocations: 29.69 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3306, allocations: 0 / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3306, allocations: 0 / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.3306, allocations: 3.984 kB / 1.095 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.3308, allocations: 253.6 kB / 1.096 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3308, allocations: 0 / 1.096 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.835e-05/0.3309, allocations: 7.984 kB / 1.096 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3309, allocations: 0 / 1.096 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3309, allocations: 7.875 kB / 1.096 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3309, allocations: 8 kB / 1.096 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3309, allocations: 0 / 1.096 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.3312, allocations: 148.8 kB / 1.096 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.3313, allocations: 104.8 kB / 1.096 GB, free: 9.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.3313, allocations: 7.938 kB / 1.096 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.3314, allocations: 11.98 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.3315, allocations: 15.97 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.3315, allocations: 4 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002215/0.3318, allocations: 229.9 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.854e-06/0.3318, allocations: 0 / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002722/0.332, allocations: 47.92 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,greHys.greHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001392/0.3334, allocations: 0.9984 MB / 1.097 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002811/0.3337, allocations: 113.6 kB / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3337, allocations: 0 / 1.097 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.952e-05/0.3338, allocations: 36.05 kB / 1.097 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3342, allocations: 63.7 kB / 1.097 GB, free: 7.789 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.337, allocations: 2.366 MB / 1.1 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3373, allocations: 0.7515 MB / 1.1 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001022/0.3374, allocations: 34.08 kB / 1.1 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.3376, allocations: 75.34 kB / 1.1 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.3376, allocations: 0 / 1.1 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02224/0.3598, allocations: 5.575 MB / 1.106 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.281, allocations: 14.23 kB / 1.106 GB, free: 14.97 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u,gre.t,gre.y,greHys.y Variables in the result:gre.h,gre.pre_y_start,gre.t,gre.u,gre.y,greHys.h,greHys.pre_y_start,greHys.t,greHys.u,greHys.y,ram.extrapolation,ram.offset[1],ram.smoothness,ram.table[1,1],ram.table[1,2],ram.table[2,1],ram.table[2,2],ram.table[3,1],ram.table[3,2],ram.table[4,1],ram.table[4,2],ram.table[5,1],ram.table[5,2],ram.table[6,1],ram.table[6,2],ram.timeScale,ram.y[1],rou.n,rou.u,rou.y,time