Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.001344/0.001344, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001485/0.001485, allocations: 217 kB / 22.25 MB, free: 5.082 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.298/3.298, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",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.002005/0.002005, allocations: 67.81 kB / 1.177 GB, free: 17.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3611, allocations: 180.2 MB / 1.353 GB, free: 8.5 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002034/0.3632, allocations: 0.7339 MB / 1.354 GB, free: 7.77 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001623/0.3648, allocations: 1.241 MB / 1.355 GB, free: 6.516 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.279e-05/0.3648, allocations: 0 / 1.355 GB, free: 6.516 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.855e-05/0.3649, allocations: 3.938 kB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.3649, allocations: 11.92 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.3654, allocations: 142.8 kB / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.3656, allocations: 115.8 kB / 1.355 GB, free: 6.25 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.678e-05/0.3657, allocations: 15.98 kB / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.943e-05/0.3658, allocations: 55.89 kB / 1.355 GB, free: 6.18 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.413e-05/0.3659, allocations: 43.83 kB / 1.355 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.3659, allocations: 8 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.279e-05/0.366, allocations: 27.98 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.366, allocations: 15.97 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.366, allocations: 39.86 kB / 1.355 GB, free: 6.047 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.3662, allocations: 115.9 kB / 1.355 GB, free: 5.934 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.3662, allocations: 0 / 1.355 GB, free: 5.934 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3662, allocations: 3.938 kB / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.3662, allocations: 0 / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005536/0.3668, allocations: 343.8 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.3668, allocations: 8.031 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.3669, allocations: 34.75 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.26e-05/0.3669, allocations: 12.89 kB / 1.356 GB, free: 5.492 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.367, allocations: 118.4 kB / 1.356 GB, free: 5.352 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3671, allocations: 8.359 kB / 1.356 GB, free: 5.344 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.3671, allocations: 4.375 kB / 1.356 GB, free: 5.34 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001934/0.3673, allocations: 70.22 kB / 1.356 GB, free: 5.266 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.3673, allocations: 3.938 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.3673, allocations: 0 / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3673, allocations: 4 kB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.3675, allocations: 43.89 kB / 1.356 GB, free: 5.215 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.368, allocations: 295.8 kB / 1.356 GB, free: 4.883 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.3681, allocations: 50.55 kB / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.241e-05/0.3682, allocations: 25.5 kB / 1.356 GB, free: 4.797 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.3683, allocations: 3.938 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.3685, allocations: 83.36 kB / 1.356 GB, free: 4.699 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 3.357e-06/0.3685, allocations: 4 kB / 1.356 GB, free: 4.695 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004559/0.369, allocations: 137.6 kB / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.369, allocations: 59.39 kB / 1.357 GB, free: 4.484 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3691, allocations: 113.8 kB / 1.357 GB, free: 4.363 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.3692, allocations: 29.7 kB / 1.357 GB, free: 4.328 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.3692, allocations: 92.09 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.3692, allocations: 19.84 kB / 1.357 GB, free: 4.215 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.3693, allocations: 37.69 kB / 1.357 GB, free: 4.172 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3695, allocations: 322.8 kB / 1.357 GB, free: 3.848 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.3696, allocations: 47.95 kB / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.3698, allocations: 83.33 kB / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.3701, allocations: 133 kB / 1.357 GB, free: 3.559 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3701, allocations: 4 kB / 1.357 GB, free: 3.555 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004327/0.3705, allocations: 195.2 kB / 1.358 GB, free: 3.352 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/0.3705, allocations: 38.17 kB / 1.358 GB, free: 3.309 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3705, allocations: 4.062 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3706, allocations: 3.984 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.3e-05/0.3707, allocations: 11.94 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3707, allocations: 4 kB / 1.358 GB, free: 3.285 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.3709, allocations: 35.89 kB / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.3709, allocations: 8 kB / 1.358 GB, free: 3.242 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001213/0.371, allocations: 133.7 kB / 1.358 GB, free: 3.102 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.371, allocations: 3.953 kB / 1.358 GB, free: 3.098 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000301/0.3713, allocations: 117.9 kB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.3713, allocations: 0 / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3713, allocations: 0 / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3713, allocations: 3.984 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004408/0.3718, allocations: 329.6 kB / 1.358 GB, free: 2.602 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3718, allocations: 7.984 kB / 1.358 GB, free: 2.594 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.3718, allocations: 8 kB / 1.358 GB, free: 2.586 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3718, allocations: 3.938 kB / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3718, allocations: 3.984 kB / 1.358 GB, free: 2.578 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3718, allocations: 0 / 1.358 GB, free: 2.578 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.3719, allocations: 7.938 kB / 1.358 GB, free: 2.57 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.3722, allocations: 199.9 kB / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.007e-05/0.3722, allocations: 4 kB / 1.359 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.3722, allocations: 0 / 1.359 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.868e-05/0.3723, allocations: 11.98 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.111e-05/0.3723, allocations: 7.938 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.3723, allocations: 3.984 kB / 1.359 GB, free: 2.332 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.227e-05/0.3724, allocations: 87.28 kB / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3724, allocations: 0 / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002686/0.3727, allocations: 31.89 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007013/0.3734, allocations: 0.7436 MB / 1.359 GB, free: 1.445 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004016/0.3738, allocations: 163.3 kB / 1.36 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3738, allocations: 0 / 1.36 GB, free: 1.273 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3739, allocations: 32.25 kB / 1.36 GB, free: 1.242 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.3742, allocations: 19.88 kB / 1.36 GB, free: 1.223 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.3765, allocations: 1.653 MB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.3768, allocations: 0.6807 MB / 1.362 GB, free: 14.76 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.775e-05/0.3769, allocations: 11.98 kB / 1.362 GB, free: 14.75 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.455e-05/0.3769, allocations: 19.44 kB / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of SimCode: time 3.81e-07/0.3769, allocations: 0 / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.4108, allocations: 2.577 MB / 1.364 GB, free: 12.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.32, allocations: 3.109 kB / 1.364 GB, free: 12.3 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable triggeredMax.trigger in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.242066459999933]