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.001798/0.001798, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002211/0.002211, allocations: 217.1 kB / 22.25 MB, free: 4.855 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 7.801 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.202/3.202, allocations: 0.4892 GB / 0.7943 GB, free: 35.61 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.002728/0.002728, allocations: 70.19 kB / 1.153 GB, free: 25.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3685, allocations: 176.1 MB / 1.325 GB, free: 2.363 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002151/0.3707, allocations: 0.7218 MB / 1.326 GB, free: 1.648 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.3724, allocations: 1.213 MB / 1.327 GB, free: 432 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.87e-05/0.3725, allocations: 0 / 1.327 GB, free: 432 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.802e-05/0.3725, allocations: 3.938 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.002e-05/0.3726, allocations: 11.86 kB / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005724/0.3732, allocations: 151.6 kB / 1.327 GB, free: 268 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.3734, allocations: 115.8 kB / 1.327 GB, free: 152 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3735, allocations: 15.97 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.3736, allocations: 47.91 kB / 1.327 GB, free: 88 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.3737, allocations: 39.88 kB / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.3737, allocations: 8 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.3738, allocations: 31.92 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.3738, allocations: 15.98 kB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.239e-05/0.3739, allocations: 35.84 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.3741, allocations: 115.9 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3741, allocations: 0 / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3741, allocations: 0 / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.3741, allocations: 0 / 1.328 GB, free: 15.84 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.0006972/0.3748, allocations: 341.8 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3749, allocations: 8.031 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.3749, allocations: 38.73 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.772e-05/0.375, allocations: 12.89 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3751, allocations: 110.5 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.3751, allocations: 8.312 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.3751, allocations: 8.375 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.3753, allocations: 66.22 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.3753, allocations: 3.938 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3753, allocations: 7.922 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3754, allocations: 7.984 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.3755, allocations: 35.97 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004784/0.376, allocations: 283.8 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.3762, allocations: 54.48 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.244e-05/0.3763, allocations: 24.94 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.3763, allocations: 4 kB / 1.328 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.3765, allocations: 83.36 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.3765, allocations: 0 / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004547/0.377, allocations: 145.6 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.377, allocations: 55.39 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3771, allocations: 113.8 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.3772, allocations: 29.7 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.714e-05/0.3772, allocations: 88.14 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.3773, allocations: 19.8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/0.3773, allocations: 37.69 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3775, allocations: 322.8 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.3777, allocations: 85.59 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.3779, allocations: 105.1 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/0.3782, allocations: 129 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3782, allocations: 4 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004751/0.3786, allocations: 232.8 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/0.3787, allocations: 41.77 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3787, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3787, allocations: 0 / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-05/0.3788, allocations: 15.98 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.3788, allocations: 0 / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.379, allocations: 31.95 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.379, allocations: 8 kB / 1.33 GB, free: 13.07 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.0001105/0.3791, allocations: 130.2 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.3791, allocations: 12.42 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003063/0.3795, allocations: 106 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.3795, allocations: 4 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3795, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3795, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004632/0.3799, allocations: 333.5 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3799, allocations: 0 / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.38, allocations: 15.98 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.38, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.38, allocations: 4 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.38, allocations: 0 / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.38, allocations: 3.938 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004888/0.3805, allocations: 203.4 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/0.3805, allocations: 7.984 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.3805, allocations: 3.938 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.3806, allocations: 8 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.3807, allocations: 19.92 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.3807, allocations: 0 / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.51e-05/0.3808, allocations: 91.27 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3808, allocations: 0 / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002695/0.381, allocations: 23.94 kB / 1.331 GB, free: 12.04 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.0007192/0.3818, allocations: 0.7402 MB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004274/0.3822, allocations: 197.1 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3822, allocations: 4 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.3824, allocations: 39.91 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.3827, allocations: 7.938 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.385, allocations: 1.766 MB / 1.334 GB, free: 9.117 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.094e-05/0.385, allocations: 71.33 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.15e-05/0.3851, allocations: 7.938 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.3851, allocations: 19.44 kB / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3851, allocations: 0 / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.4157, allocations: 3.105 MB / 1.337 GB, free: 6.047 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 9.141 kB / 1.337 GB, free: 6.043 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.747060663998127]