Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.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.Less,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Less",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Less",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.001648/0.001648, allocations: 108 kB / 15.61 MB, free: 152 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.001805/0.001805, allocations: 192.8 kB / 16.53 MB, free: 6.699 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.225/1.225, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.212/2.212, allocations: 390.3 MB / 0.6647 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 71.88 kB / 0.8127 GB, free: 14.41 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6243/0.6254, allocations: 140.4 MB / 0.9497 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Less): time 0.003156/0.6286, allocations: 2.115 MB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.6304, allocations: 1.241 MB / 0.953 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.6305, allocations: 8.875 kB / 0.953 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004042/0.631, allocations: 159.8 kB / 0.9532 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.6313, allocations: 159.2 kB / 0.9533 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.6318, allocations: 226 kB / 0.9535 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003156/0.6321, allocations: 362.8 kB / 0.9539 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.6323, allocations: 81.28 kB / 0.954 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.6325, allocations: 144.3 kB / 0.9541 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.6326, allocations: 161.5 kB / 0.9543 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.6327, allocations: 17.06 kB / 0.9543 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.6328, allocations: 55.45 kB / 0.9543 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.627e-05/0.6329, allocations: 101.3 kB / 0.9544 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.6331, allocations: 146.7 kB / 0.9546 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003534/0.6334, allocations: 402.3 kB / 0.9549 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.6334, allocations: 1.281 kB / 0.955 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6334, allocations: 0 / 0.955 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.133e-05/0.6335, allocations: 0 / 0.955 GB, free: 5.316 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008876/0.6343, allocations: 0.6655 MB / 0.9556 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.6344, allocations: 9.312 kB / 0.9556 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.6344, allocations: 42.28 kB / 0.9556 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.6345, allocations: 38.38 kB / 0.9557 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.6349, allocations: 392.8 kB / 0.9561 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.6349, allocations: 12.48 kB / 0.9561 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.635, allocations: 11.28 kB / 0.9561 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.6352, allocations: 115.1 kB / 0.9562 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.6352, allocations: 0 / 0.9562 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.6352, allocations: 5.094 kB / 0.9562 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.6353, allocations: 6.469 kB / 0.9562 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.6354, allocations: 74.59 kB / 0.9563 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000742/0.6362, allocations: 0.5277 MB / 0.9568 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.6365, allocations: 136.2 kB / 0.9569 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.659e-05/0.6366, allocations: 46.78 kB / 0.957 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.6366, allocations: 5.312 kB / 0.957 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.6368, allocations: 111 kB / 0.9571 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.462e-06/0.6369, allocations: 0 / 0.9571 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004715/0.6373, allocations: 207.7 kB / 0.9573 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.6374, allocations: 56.8 kB / 0.9573 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005172/0.6379, allocations: 0.5319 MB / 0.9578 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.6379, allocations: 27.89 kB / 0.9579 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.638, allocations: 187.4 kB / 0.9581 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.928e-05/0.6381, allocations: 29.77 kB / 0.9581 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/0.6382, allocations: 77.34 kB / 0.9582 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.459e-05/0.6382, allocations: 345.7 kB / 0.9585 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.6384, allocations: 100.8 kB / 0.9586 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.6386, allocations: 132 kB / 0.9587 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.6389, allocations: 165.2 kB / 0.9589 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.6389, allocations: 1.125 kB / 0.9589 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004731/0.6394, allocations: 320.3 kB / 0.9592 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.6394, allocations: 9.062 kB / 0.9592 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6394, allocations: 1.094 kB / 0.9592 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.6394, allocations: 2.156 kB / 0.9592 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.6396, allocations: 47.75 kB / 0.9592 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.6396, allocations: 1.406 kB / 0.9592 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.6398, allocations: 26.08 kB / 0.9593 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.6398, allocations: 15.61 kB / 0.9593 GB, free: 2.004 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.timTabLin1.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin1.tab.nextTimeEventScaled,$PRE.timTabLin1.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,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 (33): * Single equations (assignments): 33 * 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.0001456/0.64, allocations: 180.9 kB / 0.9594 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.64, allocations: 34.84 kB / 0.9595 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.6401, allocations: 38.16 kB / 0.9595 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.6401, allocations: 1.094 kB / 0.9595 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6401, allocations: 5.156 kB / 0.9595 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6401, allocations: 4 kB / 0.9595 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.6403, allocations: 316 kB / 0.9598 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6404, allocations: 0 / 0.9598 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.281e-05/0.6404, allocations: 6.312 kB / 0.9598 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.6404, allocations: 5.219 kB / 0.9598 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.6404, allocations: 5.266 kB / 0.9598 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.6404, allocations: 1.219 kB / 0.9598 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.6404, allocations: 0 / 0.9598 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.6407, allocations: 200.1 kB / 0.96 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.614e-05/0.6408, allocations: 122.8 kB / 0.9601 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.6409, allocations: 6.094 kB / 0.9602 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.641, allocations: 15.78 kB / 0.9602 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.641, allocations: 17.89 kB / 0.9602 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.6411, allocations: 8.484 kB / 0.9602 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003186/0.6414, allocations: 329.8 kB / 0.9605 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6414, allocations: 0.9688 kB / 0.9605 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002964/0.6417, allocations: 65.69 kB / 0.9606 GB, free: 0.9961 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: 8 ($whenCondition2,$whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 5 (timTabLin1.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin1.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001332/0.643, allocations: 1.042 MB / 0.9616 GB, free: 236 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003885/0.6434, allocations: 205.4 kB / 0.9618 GB, free: 144 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6434, allocations: 0 / 0.9618 GB, free: 144 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.6436, allocations: 51.77 kB / 0.9618 GB, free: 124 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.644, allocations: 102.2 kB / 0.9619 GB, free: 72 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.6482, allocations: 3.206 MB / 0.9651 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.6486, allocations: 0.7949 MB / 0.9658 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001701/0.6488, allocations: 57.78 kB / 0.9659 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.649, allocations: 115.5 kB / 0.966 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of SimCode: time 2.225e-06/0.649, allocations: 0 / 0.966 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.113/1.762, allocations: 7.282 MB / 0.9731 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/12.39, allocations: 8.688 kB / 0.9731 GB, free: 9.496 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Less_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Less.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,les.u1,les.u2,les.y,lesHys.y Variables in the result:les.h,les.pre_y_start,les.u1,les.u2,les.y,lesHys.h,lesHys.pre_y_start,lesHys.u1,lesHys.u2,lesHys.y,timTabLin.extrapolation,timTabLin.offset[1],timTabLin.smoothness,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.timeScale,timTabLin.y[1],timTabLin1.extrapolation,timTabLin1.offset[1],timTabLin1.smoothness,timTabLin1.table[1,1],timTabLin1.table[1,2],timTabLin1.table[2,1],timTabLin1.table[2,2],timTabLin1.table[3,1],timTabLin1.table[3,2],timTabLin1.table[4,1],timTabLin1.table[4,2],timTabLin1.table[5,1],timTabLin1.table[5,2],timTabLin1.timeScale,timTabLin1.y[1],time