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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009446/0.0009445, allocations: 92.39 kB / 16.02 MB, free: 80 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.001355/0.001355, allocations: 180.2 kB / 16.92 MB, free: 6.652 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.395/1.395, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.426/2.426, allocations: 390.9 MB / 0.667 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.000376, allocations: 12 kB / 0.8166 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7793/0.7797, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.002083/0.7818, allocations: 1.65 MB / 0.9573 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00162/0.7834, allocations: 1.07 MB / 0.9584 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.7836, allocations: 14.25 kB / 0.9584 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003979/0.784, allocations: 97.28 kB / 0.9585 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.7842, allocations: 98.55 kB / 0.9586 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.7846, allocations: 126.4 kB / 0.9587 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.7848, allocations: 204.5 kB / 0.9589 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.785, allocations: 59.53 kB / 0.959 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.7851, allocations: 77.77 kB / 0.959 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.7852, allocations: 91.91 kB / 0.9591 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.7853, allocations: 7.219 kB / 0.9591 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.7854, allocations: 60.02 kB / 0.9592 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.482e-05/0.7855, allocations: 48.55 kB / 0.9592 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.48e-05/0.7856, allocations: 101.3 kB / 0.9593 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.7859, allocations: 229.7 kB / 0.9595 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.7859, allocations: 0 / 0.9595 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.7859, allocations: 0 / 0.9595 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.7859, allocations: 5.281 kB / 0.9596 GB, free: 4.852 MB / 0.7169 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.0007685/0.7867, allocations: 0.509 MB / 0.9601 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.7867, allocations: 9.469 kB / 0.9601 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.7868, allocations: 23.09 kB / 0.9601 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.7871, allocations: 300.4 kB / 0.9604 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.7871, allocations: 11.12 kB / 0.9604 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.373e-05/0.7872, allocations: 9.438 kB / 0.9604 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.7874, allocations: 95.64 kB / 0.9605 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.7874, allocations: 1.375 kB / 0.9605 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.7874, allocations: 3.938 kB / 0.9605 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.7874, allocations: 2.75 kB / 0.9605 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.7875, allocations: 52.72 kB / 0.9605 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.7882, allocations: 461.7 kB / 0.961 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.7885, allocations: 89.05 kB / 0.9611 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.099e-05/0.7885, allocations: 32.02 kB / 0.9611 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.7886, allocations: 1.375 kB / 0.9611 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000163/0.7887, allocations: 91.92 kB / 0.9612 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.7888, allocations: 0 / 0.9612 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003587/0.7891, allocations: 144.5 kB / 0.9613 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.7892, allocations: 60.78 kB / 0.9614 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.7895, allocations: 363.1 kB / 0.9617 GB, free: 3 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.7896, allocations: 31.7 kB / 0.9618 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.073e-05/0.7896, allocations: 140.4 kB / 0.9619 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.7897, allocations: 23.77 kB / 0.9619 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.7897, allocations: 24.7 kB / 0.9619 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.34e-05/0.7898, allocations: 337.6 kB / 0.9623 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.7899, allocations: 61.47 kB / 0.9623 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.79, allocations: 93.44 kB / 0.9624 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.7902, allocations: 99.94 kB / 0.9625 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7903, allocations: 1.031 kB / 0.9625 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003571/0.7906, allocations: 206.6 kB / 0.9627 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.7906, allocations: 5.125 kB / 0.9627 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.7907, allocations: 1.125 kB / 0.9627 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.7907, allocations: 9.266 kB / 0.9627 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.7908, allocations: 28.02 kB / 0.9627 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.7909, allocations: 1.375 kB / 0.9627 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.791, allocations: 22.14 kB / 0.9628 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.791, allocations: 4.812 kB / 0.9628 GB, free: 2.184 MB / 0.7169 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.0001465/0.7912, allocations: 154.4 kB / 0.9629 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.7912, allocations: 21.44 kB / 0.9629 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.975e-05/0.7913, allocations: 35.45 kB / 0.963 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.7913, allocations: 1.438 kB / 0.963 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.7913, allocations: 0 / 0.963 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.7913, allocations: 0 / 0.963 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.7916, allocations: 259.2 kB / 0.9632 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.7916, allocations: 3.938 kB / 0.9632 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.812e-05/0.7916, allocations: 5.094 kB / 0.9632 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.7917, allocations: 5.141 kB / 0.9632 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.7917, allocations: 8.984 kB / 0.9632 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.7917, allocations: 1.031 kB / 0.9632 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.7917, allocations: 3.938 kB / 0.9632 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.792, allocations: 145.4 kB / 0.9634 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.7921, allocations: 101.2 kB / 0.9635 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/0.7921, allocations: 9.906 kB / 0.9635 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.7922, allocations: 13.39 kB / 0.9635 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.166e-05/0.7923, allocations: 17.75 kB / 0.9635 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.7923, allocations: 2.938 kB / 0.9635 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002554/0.7926, allocations: 234.2 kB / 0.9637 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7926, allocations: 0 / 0.9637 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000304/0.7929, allocations: 39.11 kB / 0.9638 GB, free: 1.336 MB / 0.7169 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.001196/0.7941, allocations: 422 kB / 0.9642 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002969/0.7944, allocations: 112.3 kB / 0.9643 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.7944, allocations: 3.938 kB / 0.9643 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.47e-05/0.7945, allocations: 45.11 kB / 0.9643 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.7949, allocations: 49.78 kB / 0.9644 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000718/0.7957, allocations: 472.2 kB / 0.9648 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.7959, allocations: 0.7536 MB / 0.9656 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.051e-05/0.796, allocations: 23.14 kB / 0.9656 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.796, allocations: 0 / 0.9656 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of Templates: time 0.006189/0.8022, allocations: 3.164 MB / 0.9687 GB, free: 14.33 MB / 0.7325 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