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.00681/0.00681, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001785/0.001785, allocations: 195.9 kB / 16.68 MB, free: 5.934 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.11 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.779/2.779, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 63.91 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7313/0.7332, allocations: 159.1 MB / 1.22 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001861/0.7351, allocations: 0.7213 MB / 1.221 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001631/0.7367, allocations: 1.19 MB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.087e-05/0.7368, allocations: 8 kB / 1.222 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.076e-05/0.7368, allocations: 3.938 kB / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.7369, allocations: 7.875 kB / 1.222 GB, free: 84 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005543/0.7375, allocations: 142.5 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.7377, allocations: 119.8 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.207e-05/0.7378, allocations: 15.98 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.982e-05/0.7379, allocations: 43.91 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/0.738, allocations: 51.86 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.738, allocations: 15.94 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.743e-05/0.7381, allocations: 19.98 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.7382, allocations: 12 kB / 1.222 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.996e-05/0.7382, allocations: 43.84 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001965/0.7384, allocations: 110.3 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.7385, allocations: 0 / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7385, allocations: 3.938 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.7385, 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.000608/0.7391, allocations: 409.9 kB / 1.223 GB, free: 15.06 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.7391, allocations: 8.031 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.7392, allocations: 42.73 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.981e-05/0.7392, allocations: 12.89 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.7394, allocations: 172.3 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.7394, allocations: 4.375 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.7394, allocations: 8.375 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.7396, allocations: 66.16 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.7396, allocations: 3.938 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.7397, allocations: 7.984 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.7397, allocations: 0 / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.7399, allocations: 39.97 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.7403, allocations: 320.7 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.7405, allocations: 50.59 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.7406, allocations: 28.83 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.7406, allocations: 8.078 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.7409, allocations: 87.34 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7409, allocations: 0 / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004463/0.7413, allocations: 133.5 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.7414, allocations: 55.41 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.7415, allocations: 121.8 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.7415, allocations: 25.7 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.7416, allocations: 92.09 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.7416, allocations: 23.83 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.7417, allocations: 37.69 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.7419, allocations: 318.8 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.742, allocations: 48.33 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.7422, allocations: 83.39 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/0.7425, allocations: 129.1 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7425, allocations: 7.938 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004601/0.743, allocations: 203.2 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.7431, allocations: 33.64 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.7431, allocations: 7.984 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.7431, allocations: 3.984 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.163e-05/0.7432, allocations: 8 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.7432, allocations: 4 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.7434, allocations: 40.02 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.7435, allocations: 4.312 kB / 1.225 GB, free: 12.64 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 0.0001046/0.7436, allocations: 125.8 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.7436, allocations: 3.953 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003242/0.7439, allocations: 117.9 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.7439, allocations: 8 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.7439, allocations: 0 / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.744, allocations: 3.984 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004787/0.7444, allocations: 358.4 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.7445, allocations: 3.984 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.336e-05/0.7445, allocations: 8 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.7445, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.7445, allocations: 3.984 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.7446, allocations: 4 kB / 1.226 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.7446, allocations: 3.938 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.7449, allocations: 200.4 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.745, allocations: 89 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.745, allocations: 4 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.359e-05/0.7451, allocations: 7.984 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.7451, allocations: 11.94 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.7451, allocations: 3.984 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.547e-05/0.7452, allocations: 91.22 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7452, allocations: 0 / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003223/0.7455, allocations: 24 kB / 1.226 GB, free: 11.48 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.0006875/0.7462, allocations: 0.7513 MB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003996/0.7466, allocations: 167.3 kB / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.7467, allocations: 0 / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.7468, allocations: 39.91 kB / 1.227 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.7471, allocations: 16.06 kB / 1.227 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.7492, allocations: 1.646 MB / 1.229 GB, free: 8.723 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.7496, allocations: 0.6846 MB / 1.229 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.148e-05/0.7496, allocations: 4 kB / 1.229 GB, free: 8.008 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.7497, allocations: 19.42 kB / 1.229 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.7497, allocations: 7.938 kB / 1.229 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.7728, allocations: 2.45 MB / 1.232 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.74, allocations: 16.16 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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