Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001629/0.001629, allocations: 103 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.002112/0.002112, allocations: 212.9 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.417/1.417, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.115/3.115, allocations: 0.49 GB / 0.7916 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_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.002033/0.002033, allocations: 76.88 kB / 1.149 GB, free: 26.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3738, allocations: 176.1 MB / 1.321 GB, free: 3.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00361/0.3774, allocations: 1.785 MB / 1.323 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3788, allocations: 0.709 MB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.379, allocations: 4 kB / 1.323 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.3791, allocations: 27.67 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.385e-05/0.3792, allocations: 23.75 kB / 1.323 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007457/0.3799, allocations: 266.8 kB / 1.324 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.3805, allocations: 403.3 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/0.3808, allocations: 187.2 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.381, allocations: 143.7 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.3812, allocations: 135.5 kB / 1.324 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.785e-05/0.3812, allocations: 40 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.3814, allocations: 63.91 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.161e-05/0.3814, allocations: 67.83 kB / 1.325 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.3816, allocations: 143.4 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005553/0.3822, allocations: 414.6 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3822, allocations: 0 / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3822, allocations: 0 / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.3822, allocations: 4 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009016/0.3831, allocations: 0.5545 MB / 1.326 GB, free: 14.38 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3832, allocations: 15.98 kB / 1.326 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.707e-05/0.3832, allocations: 62.72 kB / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002786/0.3835, allocations: 40.72 kB / 1.326 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000409/0.3839, allocations: 264 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.384, allocations: 32.94 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.524e-05/0.384, allocations: 32.31 kB / 1.326 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005126/0.3845, allocations: 272.3 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3846, allocations: 7.875 kB / 1.326 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.243e-05/0.3846, allocations: 15.98 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3846, allocations: 4 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/0.3849, allocations: 178.2 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.3862, allocations: 0.8541 MB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.3865, allocations: 161 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.3867, allocations: 76.92 kB / 1.328 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3867, allocations: 4 kB / 1.328 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.387, allocations: 145.8 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.793e-06/0.387, allocations: 4 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005485/0.3875, allocations: 275.5 kB / 1.328 GB, free: 11.83 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.3876, allocations: 55.41 kB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.3878, allocations: 163.9 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.014e-05/0.3878, allocations: 41.7 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.388, allocations: 140.8 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.16e-05/0.388, allocations: 75.45 kB / 1.328 GB, free: 11.33 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.3882, allocations: 89.62 kB / 1.328 GB, free: 11.24 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3884, allocations: 330.8 kB / 1.329 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.3886, allocations: 95.95 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.3888, allocations: 162.9 kB / 1.329 GB, free: 10.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.3892, allocations: 241.4 kB / 1.329 GB, free: 10.36 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3892, allocations: 0 / 1.329 GB, free: 10.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006228/0.3898, allocations: 364.1 kB / 1.33 GB, free: 9.992 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.226e-05/0.3899, allocations: 37.69 kB / 1.33 GB, free: 9.949 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3899, allocations: 4 kB / 1.33 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.3899, allocations: 4 kB / 1.33 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.39, allocations: 27.92 kB / 1.33 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3901, allocations: 4 kB / 1.33 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/0.3903, allocations: 47.81 kB / 1.33 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.3903, allocations: 24.2 kB / 1.33 GB, free: 9.84 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0001882/0.3905, allocations: 161.8 kB / 1.33 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.3905, allocations: 23.83 kB / 1.33 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.3906, allocations: 17.88 kB / 1.33 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.3906, allocations: 4 kB / 1.33 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3906, allocations: 0 / 1.33 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3906, allocations: 0 / 1.33 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008789/0.3915, allocations: 0.6313 MB / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3915, allocations: 0 / 1.331 GB, free: 8.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.997e-05/0.3916, allocations: 19.94 kB / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3916, allocations: 0 / 1.331 GB, free: 8.918 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.3916, allocations: 15.92 kB / 1.331 GB, free: 8.902 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3916, allocations: 4 kB / 1.331 GB, free: 8.898 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3916, allocations: 0 / 1.331 GB, free: 8.898 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.392, allocations: 317.2 kB / 1.331 GB, free: 8.574 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.896e-05/0.3921, allocations: 92.95 kB / 1.331 GB, free: 8.465 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.3921, allocations: 4 kB / 1.331 GB, free: 8.461 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.193e-05/0.3922, allocations: 15.92 kB / 1.331 GB, free: 8.445 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.877e-05/0.3923, allocations: 27.97 kB / 1.331 GB, free: 8.418 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.3923, allocations: 8 kB / 1.331 GB, free: 8.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.233e-05/0.3924, allocations: 105.2 kB / 1.331 GB, free: 8.309 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3924, allocations: 0 / 1.331 GB, free: 8.309 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000321/0.3927, allocations: 75.7 kB / 1.331 GB, free: 8.234 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007449/0.3934, allocations: 0.8412 MB / 1.332 GB, free: 7.363 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004917/0.3939, allocations: 279.7 kB / 1.332 GB, free: 7.078 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3939, allocations: 4.438 kB / 1.332 GB, free: 7.074 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.3941, allocations: 83.91 kB / 1.332 GB, free: 6.992 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.3944, allocations: 25.7 kB / 1.332 GB, free: 6.969 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.3974, allocations: 2.364 MB / 1.335 GB, free: 4.469 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3978, allocations: 0.7479 MB / 1.335 GB, free: 3.695 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.021e-05/0.3979, allocations: 25.94 kB / 1.336 GB, free: 3.672 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.398, allocations: 59.42 kB / 1.336 GB, free: 3.613 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.398, allocations: 0 / 1.336 GB, free: 3.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.4289, allocations: 4.717 MB / 1.34 GB, free: 15.02 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.613/9.042, allocations: 9.547 kB / 1.34 GB, free: 15.01 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1 from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.y1_actual in file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1_actual from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.632194675970823]