Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 102.9 kB / 16.45 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 210.4 kB / 19.43 MB, free: 3.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.612/1.612, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.82/2.82, allocations: 476.7 MB / 0.7672 GB, free: 5.207 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 79.89 kB / 1.112 GB, free: 1.539 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.952/0.9542, allocations: 169.9 MB / 1.278 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003942/0.9581, allocations: 1.812 MB / 1.28 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.9599, allocations: 0.8766 MB / 1.281 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.96, allocations: 3.938 kB / 1.281 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.9602, allocations: 19.86 kB / 1.281 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.9606, allocations: 35.72 kB / 1.281 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006671/0.9612, allocations: 159.7 kB / 1.281 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004695/0.9617, allocations: 211.6 kB / 1.281 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.9618, allocations: 27.27 kB / 1.281 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.9621, allocations: 83.75 kB / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.9623, allocations: 87.64 kB / 1.281 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.9623, allocations: 20 kB / 1.281 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.121e-05/0.9624, allocations: 35.92 kB / 1.282 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.9625, allocations: 27.92 kB / 1.282 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.9626, allocations: 75.64 kB / 1.282 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003351/0.9629, allocations: 199.3 kB / 1.282 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.9629, allocations: 0 / 1.282 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.402e-06/0.9629, allocations: 0 / 1.282 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.963, allocations: 4 kB / 1.282 GB, free: 9.707 MB / 0.9825 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.0009703/0.9639, allocations: 484.3 kB / 1.282 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.964, allocations: 12.03 kB / 1.282 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.514e-05/0.964, allocations: 34.75 kB / 1.282 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.534e-05/0.9641, allocations: 24.83 kB / 1.282 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.9645, allocations: 237.5 kB / 1.283 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.9645, allocations: 12.38 kB / 1.283 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.9645, allocations: 8.375 kB / 1.283 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.9647, allocations: 93.72 kB / 1.283 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.9647, allocations: 0 / 1.283 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.9648, allocations: 3.984 kB / 1.283 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.9648, allocations: 8 kB / 1.283 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.9649, allocations: 59.95 kB / 1.283 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007242/0.9656, allocations: 444.5 kB / 1.283 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.9658, allocations: 82.56 kB / 1.283 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.418e-05/0.9659, allocations: 24.86 kB / 1.283 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.9659, allocations: 7.984 kB / 1.283 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.966, allocations: 87.31 kB / 1.283 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.966, allocations: 3.938 kB / 1.283 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.000326/0.9664, allocations: 133.5 kB / 1.283 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.9664, allocations: 59.34 kB / 1.284 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.9667, allocations: 175.3 kB / 1.284 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.9667, allocations: 29.7 kB / 1.284 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.9668, allocations: 112.2 kB / 1.284 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.9668, allocations: 35.86 kB / 1.284 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.9669, allocations: 41.7 kB / 1.284 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.9671, allocations: 326.8 kB / 1.284 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.9672, allocations: 47.97 kB / 1.284 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.9673, allocations: 80.73 kB / 1.284 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.9676, allocations: 132.3 kB / 1.284 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.9676, allocations: 0 / 1.284 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003942/0.9679, allocations: 211.2 kB / 1.285 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.968, allocations: 33.7 kB / 1.285 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.968, allocations: 3.938 kB / 1.285 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.968, allocations: 0 / 1.285 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.9682, allocations: 35.91 kB / 1.285 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.9682, allocations: 8 kB / 1.285 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.9684, allocations: 39.86 kB / 1.285 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.9685, allocations: 4 kB / 1.285 GB, free: 6.359 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.0001307/0.9686, allocations: 129.8 kB / 1.285 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.9686, allocations: 8.422 kB / 1.285 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.76e-05/0.9687, allocations: 17.41 kB / 1.285 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.9687, allocations: 0 / 1.285 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.9687, allocations: 7.938 kB / 1.285 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.9687, allocations: 7.984 kB / 1.285 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.9689, allocations: 229.5 kB / 1.285 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.9689, allocations: 0 / 1.285 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.161e-05/0.969, allocations: 8 kB / 1.285 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.969, allocations: 3.984 kB / 1.285 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.969, allocations: 0 / 1.285 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.969, allocations: 0 / 1.285 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.9691, allocations: 7.938 kB / 1.285 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.9694, allocations: 172.9 kB / 1.285 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.624e-05/0.9695, allocations: 101 kB / 1.285 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.9695, allocations: 0 / 1.285 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.783e-05/0.9696, allocations: 4 kB / 1.285 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/0.9696, allocations: 11.92 kB / 1.285 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.9696, allocations: 4 kB / 1.285 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001733/0.9698, allocations: 132.9 kB / 1.286 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.9698, allocations: 0 / 1.286 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002575/0.9701, allocations: 32 kB / 1.286 GB, free: 5.395 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006619/0.9707, allocations: 0.7105 MB / 1.286 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.971, allocations: 163.2 kB / 1.286 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.971, allocations: 4.312 kB / 1.287 GB, free: 4.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.367e-05/0.9711, allocations: 40.11 kB / 1.287 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.9714, allocations: 27.92 kB / 1.287 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.9741, allocations: 1.91 MB / 1.288 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.9745, allocations: 0.7196 MB / 1.289 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.838e-05/0.9746, allocations: 20.86 kB / 1.289 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.783e-05/0.9747, allocations: 35.42 kB / 1.289 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of SimCode: time 5.01e-07/0.9747, allocations: 0 / 1.289 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03674/1.011, allocations: 3.667 MB / 1.293 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.701/9.712, allocations: 10.58 kB / 1.293 GB, free: 14.07 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sta.y1 in file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1 from file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.y1_actual in file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1_actual from file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.fil.y in file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.fil.y from file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.yLim in file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.yLim from file Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.151329453103244]