Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.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.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 105.5 kB / 16.27 MB, free: 6.414 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.001582/0.001582, allocations: 191.7 kB / 17.2 MB, free: 5.953 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.577/1.577, allocations: 222.9 MB / 240.9 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.396/2.396, allocations: 390.2 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 73.33 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2624, allocations: 140.4 MB / 0.9503 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003497/0.266, allocations: 1.924 MB / 0.9522 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001832/0.2678, allocations: 1.1 MB / 0.9532 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.268, allocations: 7.938 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000381/0.2685, allocations: 127.5 kB / 0.9534 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.2687, allocations: 99.56 kB / 0.9535 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.2692, allocations: 147.5 kB / 0.9536 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002693/0.2694, allocations: 211.4 kB / 0.9538 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.2696, allocations: 53.55 kB / 0.9539 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.2698, allocations: 83.69 kB / 0.9539 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.2699, allocations: 107.5 kB / 0.954 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.2699, allocations: 12 kB / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.2701, allocations: 55.98 kB / 0.9541 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.817e-05/0.2702, allocations: 51.83 kB / 0.9542 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.638e-05/0.2703, allocations: 91.34 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.2706, allocations: 271.3 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2706, allocations: 0 / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2706, allocations: 0 / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.2706, allocations: 0 / 0.9545 GB, free: 4.5 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008737/0.2715, allocations: 0.545 MB / 0.955 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2716, allocations: 8.031 kB / 0.955 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/0.2716, allocations: 24.66 kB / 0.9551 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/0.2722, allocations: 383.3 kB / 0.9554 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.2722, allocations: 12.31 kB / 0.9554 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.2722, allocations: 7.938 kB / 0.9555 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.2724, allocations: 77.66 kB / 0.9555 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2724, allocations: 0 / 0.9555 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2725, allocations: 7.938 kB / 0.9555 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2725, allocations: 8 kB / 0.9555 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.2726, allocations: 39.97 kB / 0.9556 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.2733, allocations: 404.5 kB / 0.956 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.2735, allocations: 86.64 kB / 0.956 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.653e-05/0.2736, allocations: 28.84 kB / 0.9561 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.2736, allocations: 0 / 0.9561 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.2738, allocations: 83.31 kB / 0.9562 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.086e-06/0.2738, allocations: 4 kB / 0.9562 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.000342/0.2742, allocations: 141.3 kB / 0.9563 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.2742, allocations: 51.41 kB / 0.9563 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.2745, allocations: 303 kB / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.2746, allocations: 29.7 kB / 0.9567 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.821e-05/0.2747, allocations: 147.9 kB / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.2747, allocations: 15.81 kB / 0.9568 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.2748, allocations: 45.7 kB / 0.9569 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2749, allocations: 342.8 kB / 0.9572 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.275, allocations: 43.91 kB / 0.9572 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.2752, allocations: 60.36 kB / 0.9573 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.2753, allocations: 80.23 kB / 0.9574 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2753, allocations: 0 / 0.9574 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003072/0.2757, allocations: 161.2 kB / 0.9575 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2757, allocations: 12.03 kB / 0.9575 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2757, allocations: 0 / 0.9575 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2757, allocations: 3.938 kB / 0.9575 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.2758, allocations: 27.98 kB / 0.9576 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.2759, allocations: 0 / 0.9576 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.276, allocations: 19.83 kB / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.276, allocations: 12 kB / 0.9576 GB, free: 1.102 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.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001496/0.2762, allocations: 161.2 kB / 0.9577 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.2762, allocations: 27.72 kB / 0.9578 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.657e-05/0.2763, allocations: 25.78 kB / 0.9578 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2763, allocations: 7.938 kB / 0.9578 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2763, allocations: 0 / 0.9578 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.2763, allocations: 0 / 0.9578 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.2765, allocations: 241.6 kB / 0.958 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2765, allocations: 3.938 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.529e-05/0.2766, allocations: 4 kB / 0.958 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2766, allocations: 3.938 kB / 0.958 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.2766, allocations: 3.984 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.2766, allocations: 7.938 kB / 0.9581 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2766, allocations: 3.938 kB / 0.9581 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.2769, allocations: 136.8 kB / 0.9582 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.2769, allocations: 92.83 kB / 0.9583 GB, free: 308 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.229e-05/0.277, allocations: 4 kB / 0.9583 GB, free: 304 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-05/0.2771, allocations: 15.92 kB / 0.9583 GB, free: 288 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.105e-05/0.2771, allocations: 7.984 kB / 0.9583 GB, free: 280 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.2771, allocations: 11.98 kB / 0.9583 GB, free: 268 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002044/0.2773, allocations: 217.9 kB / 0.9585 GB, free: 52 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.41e-07/0.2774, allocations: 0 / 0.9585 GB, free: 52 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002629/0.2776, allocations: 32.12 kB / 0.9586 GB, free: 20 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,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.001011/0.2786, allocations: 418 kB / 0.959 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002529/0.2789, allocations: 99.88 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2789, allocations: 8 kB / 0.9591 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.192e-05/0.279, allocations: 31.92 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003583/0.2794, allocations: 54.38 kB / 0.9591 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006963/0.2801, allocations: 409.5 kB / 0.9595 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.2804, allocations: 0.7556 MB / 0.9603 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.225e-05/0.2805, allocations: 27.42 kB / 0.9603 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.2805, allocations: 0 / 0.9603 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of Templates: time 0.005795/0.2863, allocations: 3.275 MB / 0.9635 GB, free: 11.07 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches