Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_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.001059/0.001059, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.249/1.249, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.407/2.407, allocations: 437 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 71.89 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4763/0.4775, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001883/0.4795, allocations: 0.7287 MB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.4808, allocations: 1.187 MB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.479e-05/0.4809, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.83e-05/0.4809, allocations: 7.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.554e-05/0.481, allocations: 15.86 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004851/0.4815, allocations: 128.8 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.4816, allocations: 123.8 kB / 1.02 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.529e-05/0.4817, allocations: 15.98 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.989e-05/0.4818, allocations: 43.91 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.4819, allocations: 47.81 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.4819, allocations: 8 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.273e-05/0.482, allocations: 27.98 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.817e-05/0.482, allocations: 8 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.238e-05/0.4821, allocations: 47.83 kB / 1.02 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.4823, allocations: 109.9 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.4823, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.22e-07/0.4823, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.4823, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 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.0004991/0.4828, allocations: 405 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.4828, allocations: 12.03 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.245e-05/0.4829, allocations: 38.73 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.219e-05/0.4829, allocations: 12.84 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.101e-05/0.483, allocations: 172.3 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.483, allocations: 8.375 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.4831, allocations: 4.375 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.4833, allocations: 70.16 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.4833, allocations: 7.875 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.916e-06/0.4833, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.4833, allocations: 3.984 kB / 1.021 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.4835, allocations: 43.95 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004077/0.4839, allocations: 332.6 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.4841, allocations: 46.55 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.565e-05/0.4842, allocations: 36.86 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.4842, allocations: 4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.4844, allocations: 83.36 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.4844, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004127/0.4848, allocations: 133.5 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.4848, allocations: 59.34 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.746e-05/0.4849, allocations: 117.8 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.485, allocations: 29.7 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.835e-05/0.485, allocations: 92.2 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.485, allocations: 15.75 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.4851, allocations: 37.69 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.545e-05/0.4852, allocations: 318.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.4854, allocations: 51.95 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.4855, allocations: 79.34 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.4858, allocations: 129 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.4858, allocations: 4 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004128/0.4862, allocations: 195.2 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.4863, allocations: 37.7 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4863, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.4863, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.101e-05/0.4864, allocations: 19.92 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.4864, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.4866, allocations: 44.33 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.4866, allocations: 8 kB / 1.022 GB, free: 13.11 MB / 0.7794 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.387e-05/0.4867, allocations: 127 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/0.4867, allocations: 4 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.487, allocations: 113.9 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.487, allocations: 4 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.4871, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4871, allocations: 7.984 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003767/0.4874, allocations: 358.5 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.4875, allocations: 3.984 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.104e-05/0.4875, allocations: 11.94 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.4875, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-06/0.4875, allocations: 3.984 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4876, allocations: 8 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4876, allocations: 3.938 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.4878, allocations: 203.9 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.4879, allocations: 81.02 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.4879, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.942e-05/0.488, allocations: 11.98 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.488, allocations: 11.94 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.4881, allocations: 7.984 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.772e-05/0.4881, allocations: 83.28 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4881, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002511/0.4884, allocations: 23.94 kB / 1.023 GB, free: 11.95 MB / 0.7794 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.0005257/0.4889, allocations: 0.7457 MB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003533/0.4893, allocations: 179.2 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4893, allocations: 0 / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.4894, allocations: 39.91 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.4897, allocations: 16.34 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.4914, allocations: 1.626 MB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.4916, allocations: 0.689 MB / 1.027 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.92e-05/0.4917, allocations: 4 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.64e-05/0.4917, allocations: 27.38 kB / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.4917, allocations: 0 / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.5093, allocations: 2.402 MB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.752/7.262, allocations: 8.219 kB / 1.029 GB, free: 6.145 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches