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.000918/0.000918, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001209/0.001209, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9463/0.9463, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.713/1.713, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.9505 GB, free: 3.555 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.614e-05/1.778e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.551 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00204/0.002058, allocations: 1.773 MB / 0.9522 GB, free: 1.758 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.00317, allocations: 0.8293 MB / 0.953 GB, free: 0.9219 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.831e-05/0.003269, allocations: 4 kB / 0.953 GB, free: 0.918 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.003395, allocations: 19.8 kB / 0.953 GB, free: 0.8984 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.003617, allocations: 39.72 kB / 0.9531 GB, free: 0.8594 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.003963, allocations: 168.1 kB / 0.9532 GB, free: 0.6992 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.004177, allocations: 207.5 kB / 0.9534 GB, free: 0.4961 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.004277, allocations: 21.62 kB / 0.9534 GB, free: 480 kB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.004447, allocations: 119.7 kB / 0.9536 GB, free: 360 kB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.004567, allocations: 67.84 kB / 0.9536 GB, free: 292 kB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.004593, allocations: 20 kB / 0.9536 GB, free: 272 kB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.258e-05/0.004646, allocations: 27.98 kB / 0.9537 GB, free: 244 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.333e-05/0.004709, allocations: 39.78 kB / 0.9537 GB, free: 204 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 6.121e-05/0.00477, allocations: 51.89 kB / 0.9538 GB, free: 152 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.005023, allocations: 215.5 kB / 0.954 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.005026, allocations: 4 kB / 0.954 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.202e-06/0.005028, allocations: 0 / 0.954 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.005032, allocations: 0 / 0.954 GB, free: 15.93 MB / 0.9167 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.0005872/0.00562, allocations: 405.2 kB / 0.9544 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.005659, allocations: 12.03 kB / 0.9544 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.835e-05/0.005688, allocations: 38.73 kB / 0.9544 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.00573, allocations: 16.84 kB / 0.9544 GB, free: 15.43 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/0.005972, allocations: 190.1 kB / 0.9546 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.005987, allocations: 4.375 kB / 0.9546 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.006015, allocations: 12.38 kB / 0.9546 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.006147, allocations: 89.17 kB / 0.9547 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.006155, allocations: 192 / 0.9547 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.006167, allocations: 12.12 kB / 0.9547 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.006185, allocations: 4 kB / 0.9547 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.006285, allocations: 59.91 kB / 0.9548 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.006759, allocations: 375.6 kB / 0.9551 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.006892, allocations: 86.56 kB / 0.9552 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.006929, allocations: 28.84 kB / 0.9552 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.006939, allocations: 0 / 0.9552 GB, free: 14.5 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/0.007053, allocations: 83.38 kB / 0.9553 GB, free: 14.41 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=9): time 1.954e-06/0.007055, allocations: 7.922 kB / 0.9553 GB, free: 14.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=9): time 0.000231/0.007286, allocations: 141.5 kB / 0.9555 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.007323, allocations: 55.34 kB / 0.9555 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.007465, allocations: 179.2 kB / 0.9557 GB, free: 14 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.007483, allocations: 29.7 kB / 0.9557 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 6.501e-05/0.007548, allocations: 112.1 kB / 0.9558 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.007578, allocations: 31.88 kB / 0.9559 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.007634, allocations: 37.7 kB / 0.9559 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.416e-05/0.007729, allocations: 326.8 kB / 0.9562 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.007836, allocations: 81.67 kB / 0.9563 GB, free: 13.37 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.377e-05/0.007929, allocations: 112.2 kB / 0.9564 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.008052, allocations: 132.2 kB / 0.9565 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.008055, allocations: 0 / 0.9565 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002363/0.008291, allocations: 245.1 kB / 0.9567 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.00832, allocations: 33.7 kB / 0.9568 GB, free: 12.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.008326, allocations: 4 kB / 0.9568 GB, free: 12.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.008337, allocations: 3.938 kB / 0.9568 GB, free: 12.79 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.008438, allocations: 23.98 kB / 0.9568 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.008444, allocations: 4.047 kB / 0.9568 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.008558, allocations: 35.92 kB / 0.9568 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.008574, allocations: 11.94 kB / 0.9569 GB, free: 12.72 MB / 0.9167 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 7.878e-05/0.008652, allocations: 133.8 kB / 0.957 GB, free: 12.58 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.008664, allocations: 11.91 kB / 0.957 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.292e-05/0.008697, allocations: 17.47 kB / 0.957 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.0087, allocations: 0 / 0.957 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.008704, allocations: 0 / 0.957 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.008709, allocations: 3.984 kB / 0.957 GB, free: 12.54 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.008829, allocations: 188.6 kB / 0.9572 GB, free: 12.31 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.00883, allocations: 0 / 0.9572 GB, free: 12.31 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.008875, allocations: 11.98 kB / 0.9572 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.008877, allocations: 0 / 0.9572 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.008886, allocations: 4.469 kB / 0.9572 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.72e-07/0.008887, allocations: 0 / 0.9572 GB, free: 12.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.008888, allocations: 4 kB / 0.9572 GB, free: 12.29 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.009077, allocations: 172.8 kB / 0.9574 GB, free: 12.11 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.009112, allocations: 19.97 kB / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.009125, allocations: 0 / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.964e-05/0.009165, allocations: 16.05 kB / 0.9574 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.009197, allocations: 7.938 kB / 0.9574 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.009203, allocations: 3.984 kB / 0.9574 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 7.962e-05/0.009282, allocations: 128.9 kB / 0.9575 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.009282, allocations: 0 / 0.9575 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001535/0.009436, allocations: 39.89 kB / 0.9576 GB, free: 11.89 MB / 0.9167 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.0003778/0.009814, allocations: 0.6983 MB / 0.9583 GB, free: 11.17 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002077/0.01002, allocations: 189 kB / 0.9584 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01002, allocations: 192 / 0.9584 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 4.83e-05/0.01007, allocations: 43.86 kB / 0.9585 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001894/0.01026, allocations: 38.97 kB / 0.9585 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.01182, allocations: 2.027 MB / 0.9605 GB, free: 8.738 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.25e-05/0.01188, allocations: 106.3 kB / 0.9606 GB, free: 8.613 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 4.464e-05/0.01192, allocations: 20.95 kB / 0.9606 GB, free: 8.594 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.01197, allocations: 32.5 kB / 0.9607 GB, free: 8.562 MB / 0.9167 GB Notification: Performance of SimCode: time 6.21e-07/0.01197, allocations: 0 / 0.9607 GB, free: 8.562 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.02893, allocations: 4.477 MB / 0.965 GB, free: 4.266 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.384/7.413, allocations: 4.094 kB / 0.965 GB, free: 4.266 MB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/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: 11.713496021926403]