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.001874/0.001874, allocations: 108.1 kB / 16.45 MB, free: 6.453 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.002337/0.002337, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.519/1.519, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.398/3.398, allocations: 0.505 GB / 0.8066 GB, free: 23.09 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.002384/0.002384, allocations: 71.88 kB / 1.172 GB, free: 17.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3534, allocations: 180.2 MB / 1.348 GB, free: 9.992 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001973/0.3554, allocations: 0.7337 MB / 1.348 GB, free: 9.262 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001731/0.3571, allocations: 1.229 MB / 1.35 GB, free: 8.02 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.013e-05/0.3571, allocations: 4 kB / 1.35 GB, free: 8.016 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.644e-05/0.3572, allocations: 3.938 kB / 1.35 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.731e-05/0.3572, allocations: 15.86 kB / 1.35 GB, free: 7.996 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000524/0.3578, allocations: 143.6 kB / 1.35 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.358, allocations: 115.8 kB / 1.35 GB, free: 7.746 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.854e-05/0.358, allocations: 8 kB / 1.35 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.746e-05/0.3581, allocations: 51.89 kB / 1.35 GB, free: 7.688 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.618e-05/0.3582, allocations: 47.81 kB / 1.35 GB, free: 7.641 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.3583, allocations: 12 kB / 1.35 GB, free: 7.629 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.3583, allocations: 27.98 kB / 1.35 GB, free: 7.602 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.3584, allocations: 19.97 kB / 1.35 GB, free: 7.582 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.182e-05/0.3584, allocations: 35.86 kB / 1.35 GB, free: 7.547 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.3586, allocations: 115.9 kB / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3586, allocations: 0 / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3586, allocations: 0 / 1.35 GB, free: 7.434 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.3586, allocations: 3.938 kB / 1.35 GB, free: 7.43 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.000628/0.3593, allocations: 412.9 kB / 1.351 GB, free: 6.969 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3593, allocations: 19.92 kB / 1.351 GB, free: 6.949 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.59e-05/0.3593, allocations: 34.75 kB / 1.351 GB, free: 6.906 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.493e-05/0.3594, allocations: 8.891 kB / 1.351 GB, free: 6.898 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.3596, allocations: 176.3 kB / 1.351 GB, free: 6.688 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.3596, allocations: 8.375 kB / 1.351 GB, free: 6.68 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.3596, allocations: 4.375 kB / 1.351 GB, free: 6.676 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.3598, allocations: 66.22 kB / 1.351 GB, free: 6.605 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3598, allocations: 3.938 kB / 1.351 GB, free: 6.602 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.3598, allocations: 0 / 1.351 GB, free: 6.602 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3598, allocations: 4 kB / 1.351 GB, free: 6.598 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.36, allocations: 47.89 kB / 1.351 GB, free: 6.551 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004991/0.3605, allocations: 324.7 kB / 1.351 GB, free: 6.184 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.3607, allocations: 46.55 kB / 1.351 GB, free: 6.129 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3608, allocations: 33.48 kB / 1.351 GB, free: 6.094 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.3608, allocations: 0 / 1.351 GB, free: 6.094 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002488/0.3611, allocations: 91.36 kB / 1.351 GB, free: 5.992 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3611, allocations: 0 / 1.351 GB, free: 5.992 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.000475/0.3615, allocations: 141.6 kB / 1.352 GB, free: 5.848 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.3616, allocations: 51.41 kB / 1.352 GB, free: 5.785 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.3617, allocations: 113.8 kB / 1.352 GB, free: 5.664 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.3617, allocations: 33.64 kB / 1.352 GB, free: 5.625 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.3618, allocations: 96.08 kB / 1.352 GB, free: 5.527 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.3618, allocations: 11.91 kB / 1.352 GB, free: 5.516 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.3619, allocations: 37.7 kB / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3621, allocations: 318.8 kB / 1.352 GB, free: 5.152 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.3622, allocations: 59.91 kB / 1.352 GB, free: 5.094 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.3624, allocations: 75.7 kB / 1.352 GB, free: 5.008 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.3627, allocations: 133 kB / 1.352 GB, free: 4.859 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3627, allocations: 96 / 1.352 GB, free: 4.859 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004629/0.3632, allocations: 203.1 kB / 1.353 GB, free: 4.648 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.3632, allocations: 37.69 kB / 1.353 GB, free: 4.605 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3632, allocations: 4 kB / 1.353 GB, free: 4.602 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3632, allocations: 96 / 1.353 GB, free: 4.602 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.3633, allocations: 19.92 kB / 1.353 GB, free: 4.582 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3633, allocations: 4.062 kB / 1.353 GB, free: 4.578 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.3636, allocations: 39.88 kB / 1.353 GB, free: 4.539 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.3636, allocations: 8 kB / 1.353 GB, free: 4.531 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.0001026/0.3637, allocations: 117.8 kB / 1.353 GB, free: 4.406 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.3637, allocations: 7.953 kB / 1.353 GB, free: 4.398 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003237/0.364, allocations: 121.9 kB / 1.353 GB, free: 4.273 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.364, allocations: 4 kB / 1.353 GB, free: 4.27 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.364, allocations: 0 / 1.353 GB, free: 4.27 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.364, allocations: 0 / 1.353 GB, free: 4.27 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004734/0.3645, allocations: 362.5 kB / 1.353 GB, free: 3.859 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3645, allocations: 0 / 1.353 GB, free: 3.859 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.45e-05/0.3646, allocations: 7.984 kB / 1.353 GB, free: 3.852 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.3646, allocations: 8 kB / 1.353 GB, free: 3.844 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.3646, allocations: 4 kB / 1.353 GB, free: 3.84 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3646, allocations: 0 / 1.353 GB, free: 3.84 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3646, allocations: 7.875 kB / 1.353 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.3649, allocations: 203.5 kB / 1.354 GB, free: 3.617 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.365, allocations: 77.11 kB / 1.354 GB, free: 3.523 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.365, allocations: 7.984 kB / 1.354 GB, free: 3.516 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.012e-05/0.3651, allocations: 8 kB / 1.354 GB, free: 3.508 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.3651, allocations: 11.92 kB / 1.354 GB, free: 3.496 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.3651, allocations: 4 kB / 1.354 GB, free: 3.492 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.711e-05/0.3652, allocations: 91.27 kB / 1.354 GB, free: 3.402 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3652, allocations: 0 / 1.354 GB, free: 3.402 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002815/0.3655, allocations: 27.89 kB / 1.354 GB, free: 3.375 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.0006932/0.3662, allocations: 0.7477 MB / 1.355 GB, free: 2.602 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003949/0.3666, allocations: 155.3 kB / 1.355 GB, free: 2.438 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3666, allocations: 0 / 1.355 GB, free: 2.438 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.3667, allocations: 36.09 kB / 1.355 GB, free: 2.402 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.367, allocations: 15.92 kB / 1.355 GB, free: 2.387 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.3692, allocations: 1.643 MB / 1.356 GB, free: 0.6367 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.3695, allocations: 0.6885 MB / 1.357 GB, free: 15.92 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.25e-05/0.3696, allocations: 4 kB / 1.357 GB, free: 15.92 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.3696, allocations: 19.44 kB / 1.357 GB, free: 15.9 MB / 1.061 GB Notification: Performance of SimCode: time 3.61e-07/0.3696, allocations: 0 / 1.357 GB, free: 15.9 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3959, allocations: 2.462 MB / 1.359 GB, free: 13.57 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.651, allocations: 3.938 kB / 1.359 GB, free: 13.56 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.680735102854669]