Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00172/0.00172, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002142/0.002142, allocations: 221.1 kB / 22.25 MB, free: 5.102 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.812 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.289/3.289, allocations: 0.49 GB / 0.7951 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] 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.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_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.001915/0.001915, allocations: 60.72 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3532, allocations: 176.1 MB / 1.326 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001878/0.3551, allocations: 0.7225 MB / 1.327 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.3567, allocations: 1.213 MB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.582e-05/0.3568, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.559e-05/0.3568, allocations: 7.938 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.3569, allocations: 15.86 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004929/0.3574, allocations: 141.4 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.3575, allocations: 115.8 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.537e-05/0.3576, allocations: 12 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.423e-05/0.3577, allocations: 55.83 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.409e-05/0.3578, allocations: 39.89 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.3578, allocations: 8 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.751e-05/0.3579, allocations: 31.98 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.3579, allocations: 19.91 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.275e-05/0.358, allocations: 35.92 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.3582, allocations: 119.9 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.3582, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3582, allocations: 0 / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.3582, allocations: 0 / 1.328 GB, free: 15.02 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005828/0.3588, allocations: 335.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3588, allocations: 8.031 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.3589, allocations: 38.75 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.089e-05/0.3589, allocations: 12.94 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.359, allocations: 118.4 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.3591, allocations: 8.359 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.3591, allocations: 12.38 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.3593, allocations: 62.22 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.3593, allocations: 3.938 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.3593, allocations: 0 / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3593, allocations: 4 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.3595, allocations: 43.95 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.36, allocations: 275.8 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.3601, allocations: 50.48 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.675e-05/0.3602, allocations: 28.94 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.3602, allocations: 0 / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.3604, allocations: 91.36 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3604, allocations: 4 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004312/0.3609, allocations: 137.6 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.3609, allocations: 51.41 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.361, allocations: 113.8 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.3611, allocations: 29.7 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.3611, allocations: 88.14 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.3611, allocations: 31.72 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.611e-05/0.3612, allocations: 33.7 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3614, allocations: 322.8 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.3615, allocations: 81.66 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.3617, allocations: 109 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.362, allocations: 141 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.362, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000459/0.3625, allocations: 225 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.3625, allocations: 35.42 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3625, allocations: 3.984 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3625, allocations: 4 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.844e-05/0.3626, allocations: 8 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.3626, allocations: 3.984 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.3628, allocations: 35.98 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.3628, allocations: 15.98 kB / 1.331 GB, free: 12.25 MB / 1.029 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.0001036/0.3629, allocations: 123.6 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.363, allocations: 7.953 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.3633, allocations: 110 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3633, allocations: 4 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.3633, allocations: 0 / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/0.3633, allocations: 8.453 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004407/0.3637, allocations: 329.5 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.3637, allocations: 0 / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.3638, allocations: 11.98 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3638, allocations: 0 / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.3638, allocations: 3.938 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3638, allocations: 0 / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3638, allocations: 3.938 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003216/0.3641, allocations: 211.8 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-06/0.3641, allocations: 4 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3641, allocations: 4 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.3642, allocations: 7.984 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.3643, allocations: 7.938 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.3643, allocations: 7.938 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.216e-05/0.3643, allocations: 87.27 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3643, allocations: 0 / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002617/0.3646, allocations: 27.94 kB / 1.332 GB, free: 11.22 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: 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.0006964/0.3653, allocations: 0.7515 MB / 1.332 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003941/0.3657, allocations: 185 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3657, allocations: 0 / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3658, allocations: 31.97 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.3661, allocations: 16.05 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.3683, allocations: 1.762 MB / 1.334 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.557e-05/0.3684, allocations: 71.33 kB / 1.334 GB, free: 8.219 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.277e-05/0.3684, allocations: 8 kB / 1.334 GB, free: 8.211 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.424e-05/0.3685, allocations: 19.44 kB / 1.334 GB, free: 8.191 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.3685, allocations: 0 / 1.334 GB, free: 8.191 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.4004, allocations: 3.138 MB / 1.338 GB, free: 5.211 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.66, allocations: 6.812 kB / 1.338 GB, free: 5.207 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.600005827989662]