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.001789/0.001789, allocations: 108 kB / 15.6 MB, free: 132 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.002084/0.002084, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.324/2.324, allocations: 390.2 MB / 0.6647 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002024, allocations: 63.91 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5865/0.5885, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Less): time 0.002817/0.5914, allocations: 2.117 MB / 0.9518 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001595/0.593, allocations: 1.245 MB / 0.953 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.5931, allocations: 12.06 kB / 0.953 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003772/0.5935, allocations: 161.6 kB / 0.9532 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002804/0.5938, allocations: 158.6 kB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.5943, allocations: 224 kB / 0.9536 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000314/0.5946, allocations: 358.1 kB / 0.9539 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001759/0.5948, allocations: 77.2 kB / 0.954 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.595, allocations: 153.6 kB / 0.9541 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001547/0.5951, allocations: 156.7 kB / 0.9543 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.187e-05/0.5952, allocations: 17.16 kB / 0.9543 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.5953, allocations: 59.69 kB / 0.9543 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.5954, allocations: 100.9 kB / 0.9544 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.5955, allocations: 139.2 kB / 0.9546 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003473/0.5959, allocations: 397.6 kB / 0.9549 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5959, allocations: 1 kB / 0.9549 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.5959, allocations: 0 / 0.9549 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.5959, allocations: 7.938 kB / 0.955 GB, free: 5.277 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.0008619/0.5968, allocations: 0.6647 MB / 0.9556 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5968, allocations: 10.09 kB / 0.9556 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.625e-05/0.5969, allocations: 41.39 kB / 0.9557 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.597, allocations: 37.5 kB / 0.9557 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.5974, allocations: 397.1 kB / 0.9561 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.5974, allocations: 10.69 kB / 0.9561 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.5975, allocations: 12.94 kB / 0.9561 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.5977, allocations: 116.6 kB / 0.9562 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5977, allocations: 0 / 0.9562 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.5977, allocations: 7.156 kB / 0.9562 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.5977, allocations: 7.469 kB / 0.9562 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.5979, allocations: 62.06 kB / 0.9563 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.5986, allocations: 0.5342 MB / 0.9568 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.599, allocations: 128.1 kB / 0.9569 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.654e-05/0.5991, allocations: 59.14 kB / 0.957 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.5991, allocations: 1.344 kB / 0.957 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.5993, allocations: 114.6 kB / 0.9571 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.542e-06/0.5993, allocations: 1.375 kB / 0.9571 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0004362/0.5998, allocations: 205.3 kB / 0.9573 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.5998, allocations: 56.78 kB / 0.9573 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005057/0.6003, allocations: 0.5328 MB / 0.9579 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.6003, allocations: 32.39 kB / 0.9579 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.187e-05/0.6004, allocations: 186.8 kB / 0.9581 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.833e-05/0.6005, allocations: 29.86 kB / 0.9581 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.895e-05/0.6006, allocations: 69.84 kB / 0.9582 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.895e-05/0.6006, allocations: 348.8 kB / 0.9585 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.6008, allocations: 101.3 kB / 0.9586 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.601, allocations: 135.3 kB / 0.9587 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.6013, allocations: 162.1 kB / 0.9589 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6013, allocations: 0 / 0.9589 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004833/0.6018, allocations: 324.6 kB / 0.9592 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.6018, allocations: 10.25 kB / 0.9592 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.6018, allocations: 0 / 0.9592 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.6018, allocations: 2.219 kB / 0.9592 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.602, allocations: 47.44 kB / 0.9592 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.6021, allocations: 2.688 kB / 0.9592 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.6022, allocations: 21.17 kB / 0.9593 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.6023, allocations: 12.75 kB / 0.9593 GB, free: 1.965 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.0001522/0.6024, allocations: 187.1 kB / 0.9595 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/0.6025, allocations: 43.95 kB / 0.9595 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.503e-05/0.6025, allocations: 37.62 kB / 0.9595 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.6026, allocations: 2.188 kB / 0.9595 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.6026, allocations: 0 / 0.9595 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.6026, allocations: 0 / 0.9595 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.6028, allocations: 311.6 kB / 0.9598 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.6028, allocations: 1.062 kB / 0.9598 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.722e-05/0.6029, allocations: 9.984 kB / 0.9598 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.6029, allocations: 4.969 kB / 0.9598 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.6029, allocations: 6.188 kB / 0.9598 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.6029, allocations: 0 / 0.9598 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6029, allocations: 4.969 kB / 0.9599 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.6032, allocations: 191.7 kB / 0.96 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.609e-05/0.6033, allocations: 122.2 kB / 0.9602 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.6034, allocations: 10.41 kB / 0.9602 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.6035, allocations: 15.58 kB / 0.9602 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.6036, allocations: 18.22 kB / 0.9602 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.6036, allocations: 5 kB / 0.9602 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003136/0.6039, allocations: 325.4 kB / 0.9605 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6039, allocations: 1.156 kB / 0.9605 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003101/0.6042, allocations: 65.92 kB / 0.9606 GB, free: 0.957 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.001359/0.6056, allocations: 1.05 MB / 0.9616 GB, free: 188 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000364/0.606, allocations: 197.1 kB / 0.9618 GB, free: 104 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.606, allocations: 0 / 0.9618 GB, free: 104 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.6061, allocations: 55.19 kB / 0.9618 GB, free: 80 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.6066, allocations: 93.67 kB / 0.9619 GB, free: 32 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.6104, allocations: 3.209 MB / 0.9651 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.6108, allocations: 0.7951 MB / 0.9658 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001514/0.6109, allocations: 57.67 kB / 0.9659 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.6111, allocations: 114.5 kB / 0.966 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.6111, allocations: 0 / 0.966 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02163/0.6327, allocations: 7.277 MB / 0.9731 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/7.866, allocations: 15.06 kB / 0.9731 GB, free: 9.457 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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) Reference file matches