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.0006362/0.0006362, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007644/0.0007644, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8588/0.8588, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.734/1.734, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 3.467e-06/3.467e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.809e-05/3.156e-05, allocations: 4.812 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001916/0.001948, allocations: 0.713 MB / 1 GB, free: 12.81 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.003466, allocations: 1.218 MB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.275e-05/0.003529, allocations: 0 / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.386e-05/0.003563, allocations: 3.938 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 9.056e-05/0.003653, allocations: 11.86 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005736/0.004227, allocations: 154.1 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.000169/0.004396, allocations: 119.7 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.919e-05/0.004485, allocations: 11.92 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.004587, allocations: 63.94 kB / 1.002 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.99e-05/0.004666, allocations: 35.89 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.004687, allocations: 12 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.004753, allocations: 31.97 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.004772, allocations: 7.984 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.211e-05/0.004824, allocations: 35.91 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.005004, allocations: 135.6 kB / 1.002 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.005007, allocations: 4 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.262e-06/0.005009, allocations: 0 / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.005013, allocations: 0 / 1.002 GB, free: 10.96 MB / 0.9636 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.0004685/0.005481, allocations: 335.8 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.005523, allocations: 12.75 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.98e-05/0.005553, allocations: 34.73 kB / 1.002 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.00563, allocations: 8.938 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.361e-05/0.005703, allocations: 113.7 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.005716, allocations: 4.375 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.005732, allocations: 8.375 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001373/0.005869, allocations: 70.22 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.005877, allocations: 192 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.005886, allocations: 384 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.005892, allocations: 4.125 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.481e-05/0.005987, allocations: 39.95 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.006383, allocations: 275.8 kB / 1.003 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.006492, allocations: 54.55 kB / 1.003 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.086e-05/0.006542, allocations: 32.86 kB / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.00656, allocations: 0 / 1.003 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.006741, allocations: 91.41 kB / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.006742, allocations: 0 / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002711/0.007013, allocations: 137.5 kB / 1.003 GB, free: 9.617 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.007053, allocations: 59.41 kB / 1.003 GB, free: 9.547 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.263e-05/0.007126, allocations: 121.8 kB / 1.003 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.007142, allocations: 25.7 kB / 1.003 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.424e-05/0.007186, allocations: 88.14 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.007203, allocations: 23.84 kB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.007251, allocations: 37.7 kB / 1.004 GB, free: 9.23 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.007327, allocations: 314.8 kB / 1.004 GB, free: 8.914 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.00743, allocations: 85.59 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.007534, allocations: 109 kB / 1.004 GB, free: 8.699 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.007682, allocations: 133.1 kB / 1.004 GB, free: 8.551 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.007686, allocations: 3.938 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002615/0.007947, allocations: 232.9 kB / 1.004 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.007981, allocations: 29.7 kB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.007986, allocations: 4 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.008, allocations: 4.062 kB / 1.005 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.999e-05/0.00807, allocations: 11.98 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.008077, allocations: 4 kB / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.008178, allocations: 43.84 kB / 1.005 GB, free: 8.199 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.008192, allocations: 4 kB / 1.005 GB, free: 8.195 MB / 0.9636 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.444e-05/0.008267, allocations: 129 kB / 1.005 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-06/0.008274, allocations: 0 / 1.005 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000179/0.008453, allocations: 126.1 kB / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.008456, allocations: 3.984 kB / 1.005 GB, free: 7.93 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.00846, allocations: 0 / 1.005 GB, free: 7.93 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.008463, allocations: 0 / 1.005 GB, free: 7.93 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.008698, allocations: 329.5 kB / 1.005 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.008699, allocations: 0 / 1.005 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/0.008727, allocations: 11.98 kB / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.008729, allocations: 4 kB / 1.005 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.008737, allocations: 4 kB / 1.005 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.008738, allocations: 0 / 1.005 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.00874, allocations: 0 / 1.005 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.008887, allocations: 199.4 kB / 1.005 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-06/0.008893, allocations: 3.953 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.008905, allocations: 4.469 kB / 1.005 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.43e-05/0.008949, allocations: 15.92 kB / 1.005 GB, free: 7.305 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.008984, allocations: 7.984 kB / 1.005 GB, free: 7.297 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.00899, allocations: 8 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.137e-05/0.009021, allocations: 95.2 kB / 1.005 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.009021, allocations: 0 / 1.005 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001679/0.009189, allocations: 23.94 kB / 1.006 GB, free: 7.172 MB / 0.9636 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.0003805/0.00957, allocations: 0.7435 MB / 1.006 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.009802, allocations: 189 kB / 1.006 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.009803, allocations: 0 / 1.006 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.966e-05/0.009863, allocations: 35.91 kB / 1.006 GB, free: 6.16 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.01005, allocations: 11.02 kB / 1.006 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.01134, allocations: 1.768 MB / 1.008 GB, free: 4.25 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.637e-05/0.01139, allocations: 71.33 kB / 1.008 GB, free: 4.16 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.675e-05/0.01142, allocations: 4 kB / 1.008 GB, free: 4.156 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.556e-05/0.01145, allocations: 16.5 kB / 1.008 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of SimCode: time 3.71e-07/0.01145, allocations: 0 / 1.008 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.02824, allocations: 3.223 MB / 1.011 GB, free: 1.074 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.429/6.458, allocations: 20.77 kB / 1.011 GB, free: 1.059 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.423343655653298]