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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 109.6 kB / 17.96 MB, free: 4.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00211/0.00211, allocations: 201.4 kB / 21.22 MB, free: 0.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 249.9 MB, free: 13.35 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.807/2.807, allocations: 476.7 MB / 0.7635 GB, free: 10.93 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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 0.002071/0.002071, allocations: 71.89 kB / 1.108 GB, free: 7.434 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9253/0.9273, allocations: 168.7 MB / 1.272 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003074/0.9304, allocations: 1.798 MB / 1.274 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.9319, allocations: 0.8431 MB / 1.275 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.674e-05/0.932, allocations: 0 / 1.275 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.9321, allocations: 23.8 kB / 1.275 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.9323, allocations: 35.78 kB / 1.275 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.9328, allocations: 162.7 kB / 1.275 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003027/0.9331, allocations: 207.6 kB / 1.275 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.9332, allocations: 39.19 kB / 1.275 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.9334, allocations: 79.7 kB / 1.275 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.9336, allocations: 87.66 kB / 1.276 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.376e-05/0.9336, allocations: 16 kB / 1.276 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.9337, allocations: 31.98 kB / 1.276 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.713e-05/0.9338, allocations: 39.83 kB / 1.276 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.9339, allocations: 67.72 kB / 1.276 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.9342, allocations: 211.2 kB / 1.276 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.9342, allocations: 0 / 1.276 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9342, allocations: 0 / 1.276 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.9342, allocations: 3.938 kB / 1.276 GB, free: 0.7695 MB / 0.9669 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.0008486/0.935, allocations: 484.4 kB / 1.276 GB, free: 248 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.9351, allocations: 8.031 kB / 1.276 GB, free: 240 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.9351, allocations: 38.75 kB / 1.276 GB, free: 192 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.9352, allocations: 16.84 kB / 1.276 GB, free: 176 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003746/0.9356, allocations: 244.8 kB / 1.277 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.9356, allocations: 8.375 kB / 1.277 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.9356, allocations: 12.38 kB / 1.277 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.9358, allocations: 89.78 kB / 1.277 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.9358, allocations: 0 / 1.277 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.9358, allocations: 0 / 1.277 GB, free: 15.78 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.9358, allocations: 11.98 kB / 1.277 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.936, allocations: 59.97 kB / 1.277 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.9366, allocations: 440.4 kB / 1.277 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.9368, allocations: 86.58 kB / 1.277 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.428e-05/0.9368, allocations: 32.83 kB / 1.277 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-06/0.9368, allocations: 0 / 1.277 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001471/0.937, allocations: 83.47 kB / 1.277 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.937, allocations: 0 / 1.277 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0003037/0.9373, allocations: 137.5 kB / 1.278 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.9373, allocations: 67.33 kB / 1.278 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.9376, allocations: 175.3 kB / 1.278 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.9376, allocations: 25.7 kB / 1.278 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/0.9377, allocations: 112.1 kB / 1.278 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.304e-05/0.9377, allocations: 27.89 kB / 1.278 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-05/0.9378, allocations: 41.69 kB / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.9379, allocations: 322.8 kB / 1.278 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.9381, allocations: 55.92 kB / 1.278 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.9382, allocations: 78.53 kB / 1.278 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.9384, allocations: 124.2 kB / 1.279 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.9384, allocations: 0 / 1.279 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003704/0.9388, allocations: 215.1 kB / 1.279 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.9388, allocations: 37.7 kB / 1.279 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.9388, allocations: 4.062 kB / 1.279 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.9388, allocations: 4 kB / 1.279 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.939, allocations: 19.98 kB / 1.279 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.939, allocations: 7.938 kB / 1.279 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.9392, allocations: 35.89 kB / 1.279 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.9392, allocations: 8 kB / 1.279 GB, free: 13.44 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.0001233/0.9394, allocations: 129.8 kB / 1.279 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.9394, allocations: 19.89 kB / 1.279 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.9394, allocations: 17.41 kB / 1.279 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.9394, allocations: 0 / 1.279 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.9394, allocations: 3.938 kB / 1.279 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.9394, allocations: 0 / 1.279 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.9397, allocations: 229.6 kB / 1.279 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.9397, allocations: 480 / 1.279 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.787e-05/0.9397, allocations: 8 kB / 1.279 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.9397, allocations: 0 / 1.279 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.9398, allocations: 4 kB / 1.279 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.9398, allocations: 7.938 kB / 1.279 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.9398, allocations: 7.875 kB / 1.279 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.94, allocations: 168.9 kB / 1.279 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.902e-05/0.9401, allocations: 97.08 kB / 1.28 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.9401, allocations: 7.984 kB / 1.28 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-05/0.9402, allocations: 4 kB / 1.28 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.9403, allocations: 11.92 kB / 1.28 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.9403, allocations: 12.06 kB / 1.28 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001448/0.9404, allocations: 124.9 kB / 1.28 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.9404, allocations: 0 / 1.28 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002405/0.9407, allocations: 35.89 kB / 1.28 GB, free: 12.47 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.0006307/0.9413, allocations: 0.7105 MB / 1.28 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002953/0.9416, allocations: 163.3 kB / 1.281 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.9416, allocations: 0 / 1.281 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.314e-05/0.9417, allocations: 31.98 kB / 1.281 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.9419, allocations: 36.52 kB / 1.281 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.9443, allocations: 1.922 MB / 1.283 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.9447, allocations: 0.708 MB / 1.283 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.673e-05/0.9447, allocations: 24.84 kB / 1.283 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.548e-05/0.9448, allocations: 39.42 kB / 1.283 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.9448, allocations: 0 / 1.283 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.9736, allocations: 3.62 MB / 1.287 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.441/9.415, allocations: 14.25 kB / 1.287 GB, free: 5.152 MB / 0.9825 GB " [Timeout remaining time 291] (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_2/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: 15.67471499799285]