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.001241/0.001241, allocations: 106.4 kB / 15.99 MB, free: 6.359 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.00135/0.00135, allocations: 199.7 kB / 16.91 MB, free: 6.199 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.407/1.407, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.248/2.248, allocations: 390.2 MB / 0.665 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001299, allocations: 68.73 kB / 0.8127 GB, free: 33.32 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2884, allocations: 140.4 MB / 0.9498 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003499/0.2919, allocations: 1.989 MB / 0.9517 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.2937, allocations: 1.08 MB / 0.9528 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.2939, allocations: 7.938 kB / 0.9528 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003955/0.2943, allocations: 111.6 kB / 0.9529 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.2946, allocations: 91.7 kB / 0.953 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003924/0.295, allocations: 131.6 kB / 0.9531 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.2953, allocations: 207.4 kB / 0.9533 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.2955, allocations: 49.56 kB / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.2956, allocations: 91.56 kB / 0.9534 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.2958, allocations: 107.6 kB / 0.9535 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.2958, allocations: 12 kB / 0.9536 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.296, allocations: 55.95 kB / 0.9536 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.828e-05/0.2961, allocations: 59.83 kB / 0.9537 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.649e-05/0.2962, allocations: 83.36 kB / 0.9537 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.2965, allocations: 219.7 kB / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2965, allocations: 0 / 0.954 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2965, allocations: 4 kB / 0.954 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.2965, allocations: 0 / 0.954 GB, free: 4.875 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.0008751/0.2974, allocations: 0.5411 MB / 0.9545 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2974, allocations: 12.03 kB / 0.9545 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.759e-05/0.2975, allocations: 24.59 kB / 0.9545 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.298, allocations: 387.4 kB / 0.9549 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.298, allocations: 8.312 kB / 0.9549 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.2981, allocations: 11.94 kB / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.2983, allocations: 77.66 kB / 0.955 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2983, allocations: 0 / 0.955 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.2983, allocations: 4 kB / 0.955 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2983, allocations: 4 kB / 0.955 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.2984, allocations: 39.97 kB / 0.955 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006893/0.2991, allocations: 400.5 kB / 0.9554 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.2994, allocations: 90.64 kB / 0.9555 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.123e-05/0.2995, allocations: 28.78 kB / 0.9555 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.2995, allocations: 4 kB / 0.9555 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.2997, allocations: 79.31 kB / 0.9556 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.2997, allocations: 4 kB / 0.9556 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003555/0.3, allocations: 137.3 kB / 0.9557 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.3001, allocations: 51.41 kB / 0.9558 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.3004, allocations: 303 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.3004, allocations: 29.7 kB / 0.9561 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3005, allocations: 151.9 kB / 0.9563 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.3006, allocations: 11.81 kB / 0.9563 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-05/0.3007, allocations: 45.7 kB / 0.9563 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3008, allocations: 342.8 kB / 0.9566 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.3009, allocations: 43.91 kB / 0.9567 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.301, allocations: 61.7 kB / 0.9567 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.3012, allocations: 73.7 kB / 0.9568 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3012, allocations: 0 / 0.9568 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002928/0.3015, allocations: 179.8 kB / 0.957 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3015, allocations: 6.344 kB / 0.957 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3015, allocations: 0 / 0.957 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3015, allocations: 3.938 kB / 0.957 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3017, allocations: 23.98 kB / 0.957 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3017, allocations: 3.938 kB / 0.957 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.3018, allocations: 19.89 kB / 0.957 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.3018, allocations: 8 kB / 0.957 GB, free: 1.48 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.0001365/0.302, allocations: 167.7 kB / 0.9572 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.574e-05/0.302, allocations: 23.72 kB / 0.9572 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.3021, allocations: 25.78 kB / 0.9572 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.3021, allocations: 7.938 kB / 0.9573 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3021, allocations: 0 / 0.9573 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.3021, allocations: 0 / 0.9573 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.3023, allocations: 241.6 kB / 0.9575 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3023, allocations: 0 / 0.9575 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.48e-05/0.3024, allocations: 4 kB / 0.9575 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3024, allocations: 0 / 0.9575 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.3024, allocations: 3.984 kB / 0.9575 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3024, allocations: 7.938 kB / 0.9575 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3024, allocations: 0 / 0.9575 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.3026, allocations: 136.8 kB / 0.9576 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.3027, allocations: 92.83 kB / 0.9577 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.3027, allocations: 8 kB / 0.9577 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.3028, allocations: 11.92 kB / 0.9577 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.3029, allocations: 15.98 kB / 0.9578 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3029, allocations: 11.92 kB / 0.9578 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002078/0.3031, allocations: 217.9 kB / 0.958 GB, free: 444 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3031, allocations: 0 / 0.958 GB, free: 444 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002591/0.3034, allocations: 36.12 kB / 0.958 GB, free: 408 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.001031/0.3044, allocations: 416 kB / 0.9584 GB, free: 144 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.3047, allocations: 97.44 kB / 0.9585 GB, free: 48 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3047, allocations: 4.062 kB / 0.9585 GB, free: 44 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.522e-05/0.3048, allocations: 31.92 kB / 0.9585 GB, free: 12 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.3051, allocations: 60.3 kB / 0.9586 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006533/0.3058, allocations: 455.4 kB / 0.959 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.3061, allocations: 0.7595 MB / 0.9598 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.875e-05/0.3062, allocations: 27.44 kB / 0.9598 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.3062, allocations: 0 / 0.9598 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of Templates: time 0.005587/0.3118, allocations: 3.272 MB / 0.963 GB, free: 11.41 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