Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008727/0.0008727, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001088/0.001088, allocations: 165.9 kB / 22.46 MB, free: 2.109 MB / 18.57 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 0.8986/0.8986, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.683/1.683, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 0 / 0.9505 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.188e-05, allocations: 5.094 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001289/0.001311, allocations: 0.7207 MB / 0.9512 GB, free: 2.797 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.002511, allocations: 1.217 MB / 0.9524 GB, free: 1.566 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.45e-05/0.002566, allocations: 0 / 0.9524 GB, free: 1.566 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.002597, allocations: 3.938 kB / 0.9524 GB, free: 1.562 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.579e-05/0.002673, allocations: 15.91 kB / 0.9524 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.003138, allocations: 148.7 kB / 0.9525 GB, free: 1.406 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.003298, allocations: 115.8 kB / 0.9526 GB, free: 1.293 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.003424, allocations: 19.88 kB / 0.9527 GB, free: 1.273 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.003568, allocations: 67.88 kB / 0.9527 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.003658, allocations: 39.92 kB / 0.9528 GB, free: 1.168 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.003682, allocations: 8 kB / 0.9528 GB, free: 1.16 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.73e-05/0.003749, allocations: 24 kB / 0.9528 GB, free: 1.137 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.605e-05/0.003775, allocations: 15.92 kB / 0.9528 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.927e-05/0.003825, allocations: 27.97 kB / 0.9528 GB, free: 1.094 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.004012, allocations: 131.6 kB / 0.953 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.004016, allocations: 4 kB / 0.953 GB, free: 0.9609 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.005e-06/0.004019, allocations: 8 kB / 0.953 GB, free: 0.9531 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.004023, allocations: 0 / 0.953 GB, free: 0.9531 MB / 0.9011 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.0005226/0.004546, allocations: 331.8 kB / 0.9533 GB, free: 0.5898 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.00459, allocations: 8.031 kB / 0.9533 GB, free: 0.582 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.004621, allocations: 42.67 kB / 0.9533 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.095e-05/0.004702, allocations: 12.89 kB / 0.9534 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.643e-05/0.004779, allocations: 105.8 kB / 0.9535 GB, free: 400 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.004795, allocations: 4.375 kB / 0.9535 GB, free: 396 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.004812, allocations: 4.375 kB / 0.9535 GB, free: 392 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.004972, allocations: 70.22 kB / 0.9535 GB, free: 316 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.00498, allocations: 192 / 0.9535 GB, free: 316 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.004991, allocations: 384 / 0.9535 GB, free: 316 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.004998, allocations: 4.125 kB / 0.9535 GB, free: 312 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.005106, allocations: 51.83 kB / 0.9536 GB, free: 260 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004724/0.005579, allocations: 275.9 kB / 0.9538 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.005733, allocations: 46.56 kB / 0.9539 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.405e-05/0.005797, allocations: 36.86 kB / 0.9539 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.005827, allocations: 0 / 0.9539 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002749/0.006102, allocations: 87.3 kB / 0.954 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.006104, allocations: 0 / 0.954 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0005648/0.006668, allocations: 133.6 kB / 0.9541 GB, free: 15.61 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.006705, allocations: 55.41 kB / 0.9542 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.83e-05/0.006773, allocations: 125.7 kB / 0.9543 GB, free: 15.41 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.006791, allocations: 29.7 kB / 0.9543 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.006835, allocations: 96.16 kB / 0.9544 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.006854, allocations: 15.91 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.006906, allocations: 37.69 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.327e-05/0.006979, allocations: 318.8 kB / 0.9548 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.007093, allocations: 77.66 kB / 0.9549 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.007204, allocations: 109.1 kB / 0.955 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.007357, allocations: 133 kB / 0.9551 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.007361, allocations: 3.938 kB / 0.9551 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002738/0.007635, allocations: 232.9 kB / 0.9553 GB, free: 14.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.007674, allocations: 33.7 kB / 0.9553 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.007681, allocations: 4 kB / 0.9554 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.007697, allocations: 4.062 kB / 0.9554 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.848e-05/0.007776, allocations: 11.98 kB / 0.9554 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.007784, allocations: 7.938 kB / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.007889, allocations: 31.95 kB / 0.9554 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.007904, allocations: 4 kB / 0.9554 GB, free: 14.2 MB / 0.9167 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 7.95e-05/0.007984, allocations: 125.7 kB / 0.9555 GB, free: 14.06 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.007995, allocations: 11.94 kB / 0.9555 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.008204, allocations: 114.4 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.008208, allocations: 4.078 kB / 0.9557 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.008213, allocations: 0 / 0.9557 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.008217, allocations: 3.938 kB / 0.9557 GB, free: 13.92 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.008491, allocations: 333.6 kB / 0.956 GB, free: 13.55 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.008492, allocations: 4 kB / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.44e-05/0.008527, allocations: 7.984 kB / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.008529, allocations: 0 / 0.956 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.008538, allocations: 8 kB / 0.956 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.008539, allocations: 0 / 0.956 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.00854, allocations: 0 / 0.956 GB, free: 13.53 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.00871, allocations: 215.3 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.298e-06/0.00872, allocations: 7.953 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.008735, allocations: 3.984 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.216e-05/0.008778, allocations: 4 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.008816, allocations: 4.453 kB / 0.9562 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.008826, allocations: 16 kB / 0.9562 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.697e-05/0.008863, allocations: 91.2 kB / 0.9563 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008863, allocations: 0 / 0.9563 GB, free: 13.18 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001856/0.009048, allocations: 24 kB / 0.9563 GB, free: 13.15 MB / 0.9167 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.0005326/0.009581, allocations: 0.7397 MB / 0.9571 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003348/0.009916, allocations: 181 kB / 0.9572 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.009919, allocations: 4.062 kB / 0.9572 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.813e-05/0.009997, allocations: 31.97 kB / 0.9573 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.01027, allocations: 13.55 kB / 0.9573 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.01186, allocations: 1.772 MB / 0.959 GB, free: 10.24 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.328e-05/0.01191, allocations: 71.33 kB / 0.9591 GB, free: 10.15 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.196e-05/0.01195, allocations: 4 kB / 0.9591 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.743e-05/0.01199, allocations: 20.5 kB / 0.9591 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of SimCode: time 1.092e-06/0.01199, allocations: 0 / 0.9591 GB, free: 10.12 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.02885, allocations: 3.233 MB / 0.9623 GB, free: 7.059 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.755/6.783, allocations: 7.938 kB / 0.9623 GB, free: 7.051 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.76750782970339]