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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008948/0.008948, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002462/0.002462, allocations: 192.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.363/2.363, allocations: 469.8 MB / 0.7425 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 63.89 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5757/0.5774, allocations: 159.1 MB / 1.22 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001525/0.579, allocations: 0.7328 MB / 1.221 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.5802, allocations: 1.19 MB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.5803, allocations: 4 kB / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.603e-05/0.5803, allocations: 3.938 kB / 1.222 GB, free: 88 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.671e-05/0.5804, allocations: 7.922 kB / 1.222 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.5808, allocations: 148.5 kB / 1.222 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.581, allocations: 115.8 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.403e-05/0.5811, allocations: 19.98 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.618e-05/0.5811, allocations: 43.91 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.101e-05/0.5812, allocations: 47.88 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.5813, allocations: 12 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 5.98e-05/0.5813, allocations: 19.98 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.176e-05/0.5813, allocations: 19.92 kB / 1.222 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.937e-05/0.5814, allocations: 43.83 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.5816, allocations: 102.4 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.5816, allocations: 0 / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5816, allocations: 4 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.546e-06/0.5816, allocations: 0 / 1.223 GB, free: 15.52 MB / 0.9512 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.0005116/0.5821, allocations: 405.9 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.5821, allocations: 11.97 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.5822, allocations: 42.69 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.5822, allocations: 12.88 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.5823, allocations: 176.2 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.5823, allocations: 4.375 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.5824, allocations: 8.375 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001623/0.5825, allocations: 66.22 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.5825, allocations: 3.938 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.5826, allocations: 4 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.5826, allocations: 0 / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.5827, allocations: 43.89 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003917/0.5831, allocations: 324.7 kB / 1.224 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.5833, allocations: 54.53 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.844e-05/0.5834, allocations: 28.92 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.5834, allocations: 4 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.5836, allocations: 91.3 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.5836, allocations: 0 / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003712/0.584, allocations: 133.6 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.584, allocations: 55.41 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.746e-05/0.5841, allocations: 113.8 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.5841, allocations: 25.7 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.788e-05/0.5842, allocations: 100.1 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.5842, allocations: 23.78 kB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.5843, allocations: 33.7 kB / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5844, allocations: 322.8 kB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.5845, allocations: 43.97 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.5847, allocations: 83.33 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.5849, allocations: 137 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.585, allocations: 0 / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003861/0.5853, allocations: 203.3 kB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.5854, allocations: 30.17 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.5854, allocations: 4 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.036e-06/0.5854, allocations: 3.938 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.926e-05/0.5855, allocations: 15.92 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.5855, allocations: 4 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.5857, allocations: 39.89 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.5857, allocations: 4 kB / 1.225 GB, free: 12.63 MB / 0.9512 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 8.216e-05/0.5858, allocations: 125.8 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.5858, allocations: 3.953 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.5861, allocations: 117.9 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.5861, allocations: 4 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5861, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.5861, allocations: 0 / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.5865, allocations: 362.9 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5865, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.648e-05/0.5866, allocations: 11.98 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.5866, allocations: 0 / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.5866, allocations: 0 / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5866, allocations: 80 / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5866, allocations: 7.922 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.5869, allocations: 212.3 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.5869, allocations: 92.98 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.587, allocations: 4 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.715e-05/0.587, allocations: 4 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.5871, allocations: 11.92 kB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.5871, allocations: 0 / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.896e-05/0.5871, allocations: 91.27 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5871, allocations: 4 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002228/0.5874, allocations: 24 kB / 1.226 GB, free: 11.46 MB / 0.9512 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.0005373/0.5879, allocations: 0.7402 MB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003325/0.5883, allocations: 175.2 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.5883, allocations: 0 / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.5884, allocations: 32.27 kB / 1.227 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.5886, allocations: 19.86 kB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.5904, allocations: 1.642 MB / 1.229 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.5906, allocations: 0.6924 MB / 1.229 GB, free: 8 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.615e-05/0.5906, allocations: 7.984 kB / 1.229 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.5907, allocations: 15.44 kB / 1.229 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.5907, allocations: 4 kB / 1.229 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.629/2.22, allocations: 2.439 MB / 1.232 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/15, allocations: 19.59 kB / 1.232 GB, free: 5.637 MB / 0.9512 GB (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 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches