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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001228, allocations: 107.6 kB / 15.99 MB, free: 5.91 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.001189/0.001189, allocations: 192.5 kB / 16.91 MB, free: 5.758 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 15.27 MB / 206.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.175/2.175, allocations: 390.2 MB / 0.665 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.28 kB / 0.8127 GB, free: 33.14 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3117, allocations: 140.4 MB / 0.9498 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.004141/0.3159, allocations: 2.004 MB / 0.9518 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002106/0.3181, allocations: 1.092 MB / 0.9528 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.3183, allocations: 8 kB / 0.9528 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000497/0.3188, allocations: 95.69 kB / 0.9529 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003562/0.3192, allocations: 91.64 kB / 0.953 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004964/0.3197, allocations: 135.7 kB / 0.9531 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004449/0.3202, allocations: 215.5 kB / 0.9533 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.3204, allocations: 61.62 kB / 0.9534 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.3206, allocations: 91.56 kB / 0.9535 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.3208, allocations: 107.5 kB / 0.9536 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.3208, allocations: 12 kB / 0.9536 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001777/0.321, allocations: 63.97 kB / 0.9537 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.115e-05/0.3211, allocations: 59.81 kB / 0.9537 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3212, allocations: 95.34 kB / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.3216, allocations: 227.8 kB / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3216, allocations: 0 / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3216, allocations: 0 / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.3216, allocations: 8 kB / 0.954 GB, free: 4.816 MB / 0.7325 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.001076/0.3227, allocations: 0.5423 MB / 0.9546 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3228, allocations: 8.031 kB / 0.9546 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.3229, allocations: 24.66 kB / 0.9546 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.3233, allocations: 315.6 kB / 0.9549 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.3234, allocations: 4.375 kB / 0.9549 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.3234, allocations: 11.94 kB / 0.9549 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.3236, allocations: 95.89 kB / 0.955 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3236, allocations: 0 / 0.955 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3237, allocations: 0 / 0.955 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.3237, allocations: 4 kB / 0.955 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3238, allocations: 47.97 kB / 0.9551 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008366/0.3247, allocations: 444.4 kB / 0.9555 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.3249, allocations: 86.67 kB / 0.9556 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.299e-05/0.325, allocations: 36.78 kB / 0.9556 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.3251, allocations: 3.938 kB / 0.9556 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.3253, allocations: 91.27 kB / 0.9557 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.3253, allocations: 0 / 0.9557 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004109/0.3257, allocations: 145.4 kB / 0.9558 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.3258, allocations: 55.41 kB / 0.9559 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.3262, allocations: 370.8 kB / 0.9562 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.3263, allocations: 25.7 kB / 0.9563 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.3264, allocations: 144.4 kB / 0.9564 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.3264, allocations: 31.7 kB / 0.9564 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.578e-05/0.3265, allocations: 41.7 kB / 0.9565 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3266, allocations: 334.8 kB / 0.9568 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3268, allocations: 63.92 kB / 0.9568 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3269, allocations: 77.69 kB / 0.9569 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/0.3271, allocations: 109.7 kB / 0.957 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3271, allocations: 4 kB / 0.957 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000391/0.3275, allocations: 203.4 kB / 0.9572 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3276, allocations: 7.984 kB / 0.9572 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3276, allocations: 0 / 0.9572 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3276, allocations: 7.938 kB / 0.9572 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.3277, allocations: 23.92 kB / 0.9573 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.3278, allocations: 4 kB / 0.9573 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.3279, allocations: 23.83 kB / 0.9573 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.3279, allocations: 8.031 kB / 0.9573 GB, free: 1.242 MB / 0.7325 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.0001479/0.3281, allocations: 158.9 kB / 0.9574 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.3281, allocations: 19.72 kB / 0.9575 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.201e-05/0.3282, allocations: 33.67 kB / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3282, allocations: 0 / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3282, allocations: 0 / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3282, allocations: 0 / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.3284, allocations: 253.5 kB / 0.9577 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3285, allocations: 4 kB / 0.9577 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.883e-05/0.3285, allocations: 11.94 kB / 0.9577 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3285, allocations: 0 / 0.9577 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.3285, allocations: 7.922 kB / 0.9578 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.3286, allocations: 4 kB / 0.9578 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3286, allocations: 0 / 0.9578 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3288, allocations: 144.8 kB / 0.9579 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.3289, allocations: 96.83 kB / 0.958 GB, free: 436 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.329, allocations: 7.938 kB / 0.958 GB, free: 428 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3291, allocations: 15.98 kB / 0.958 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.3292, allocations: 15.97 kB / 0.958 GB, free: 396 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.3292, allocations: 4 kB / 0.958 GB, free: 392 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002427/0.3294, allocations: 233.9 kB / 0.9583 GB, free: 164 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3294, allocations: 0 / 0.9583 GB, free: 164 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002649/0.3297, allocations: 43.92 kB / 0.9583 GB, free: 120 kB / 0.7325 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.001113/0.3308, allocations: 428.6 kB / 0.9587 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003462/0.3312, allocations: 115.9 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3312, allocations: 0 / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.937e-05/0.3313, allocations: 31.98 kB / 0.9588 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.3317, allocations: 64.91 kB / 0.9589 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007476/0.3324, allocations: 473.6 kB / 0.9594 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.3328, allocations: 0.7513 MB / 0.9601 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.422e-05/0.3329, allocations: 27.42 kB / 0.9601 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of SimCode: time 5.91e-07/0.3329, allocations: 3.938 kB / 0.9601 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of Templates: time 0.006223/0.3391, allocations: 3.197 MB / 0.9632 GB, free: 11.16 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.t,gre.u,gre.y,greHys.y,time