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.01809/0.01809, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.002508/0.002508, allocations: 201.7 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.818/2.818, allocations: 222.9 MB / 240.4 MB, free: 4.328 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 4.839/4.839, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.003085/0.003085, allocations: 63.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4878/0.491, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002694/0.4937, allocations: 0.7235 MB / 1.167 GB, free: 6.598 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002215/0.496, allocations: 1.194 MB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.622e-05/0.4961, allocations: 3.938 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4e-05/0.4961, allocations: 7.938 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.827e-05/0.4962, allocations: 7.922 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008043/0.497, allocations: 142.5 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.4973, allocations: 123.8 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.4975, allocations: 12 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.4976, allocations: 47.89 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.4978, allocations: 43.88 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.245e-05/0.4978, allocations: 12 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.4979, allocations: 31.97 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.498, allocations: 11.92 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.263e-05/0.4981, allocations: 35.92 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.4983, allocations: 119.9 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4984, allocations: 0 / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4984, allocations: 0 / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.4984, allocations: 0 / 1.169 GB, free: 4.801 MB / 0.92 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.0008944/0.4993, allocations: 408.9 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.4994, allocations: 8.031 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.362e-05/0.4994, allocations: 46.69 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.4995, allocations: 8.891 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.4997, allocations: 164.4 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.4997, allocations: 4.359 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.4998, allocations: 8.375 kB / 1.169 GB, free: 4.062 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.5001, allocations: 66.22 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.5001, allocations: 3.938 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.5001, allocations: 0 / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.5001, allocations: 0 / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.5004, allocations: 51.89 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007196/0.5011, allocations: 320.7 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.5014, allocations: 50.55 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.5016, allocations: 28.94 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.5016, allocations: 4 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000332/0.5019, allocations: 91.34 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 4.588e-06/0.502, allocations: 11.92 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0006525/0.5026, allocations: 137.6 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.5027, allocations: 55.41 kB / 1.17 GB, free: 3.16 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.5028, allocations: 117.8 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.696e-05/0.5029, allocations: 25.7 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.781e-05/0.503, allocations: 96.03 kB / 1.17 GB, free: 2.906 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.954e-05/0.5031, allocations: 27.81 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5032, allocations: 29.7 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000208/0.5034, allocations: 326.8 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.5036, allocations: 47.97 kB / 1.171 GB, free: 2.469 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.5039, allocations: 83.33 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.5043, allocations: 129 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.5043, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006549/0.505, allocations: 191.2 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.304e-05/0.5051, allocations: 41.69 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.5051, allocations: 4 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.5051, allocations: 0 / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.5053, allocations: 15.92 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.5053, allocations: 4.062 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.5056, allocations: 35.97 kB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.5057, allocations: 11.98 kB / 1.171 GB, free: 1.914 MB / 0.92 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.0001526/0.5058, allocations: 121.8 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.928e-05/0.5058, allocations: 3.953 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004281/0.5063, allocations: 121.9 kB / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.5063, allocations: 4 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5063, allocations: 0 / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.5063, allocations: 0 / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006802/0.507, allocations: 362.5 kB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.507, allocations: 0 / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.403e-05/0.5071, allocations: 11.98 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.5071, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.5072, allocations: 4 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.5072, allocations: 3.938 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.196e-06/0.5072, allocations: 4.406 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005042/0.5077, allocations: 203.4 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.17e-05/0.5078, allocations: 85.06 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.5078, allocations: 0 / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.508, allocations: 15.98 kB / 1.172 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.508, allocations: 15.86 kB / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.5081, allocations: 0 / 1.172 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.574e-05/0.5081, allocations: 87.28 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5081, allocations: 0 / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004508/0.5086, allocations: 27.98 kB / 1.172 GB, free: 0.7578 MB / 0.92 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.0009364/0.5095, allocations: 0.7398 MB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005834/0.5101, allocations: 171.2 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5102, allocations: 0 / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.5103, allocations: 32.59 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004962/0.5109, allocations: 24.05 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.5141, allocations: 1.647 MB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.5147, allocations: 0.6846 MB / 1.175 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.154e-05/0.5148, allocations: 7.922 kB / 1.175 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.5148, allocations: 19.44 kB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of SimCode: time 5.41e-07/0.5149, allocations: 0 / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09826/0.6131, allocations: 2.446 MB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/17.11, allocations: 19.36 kB / 1.178 GB, free: 10.91 MB / 0.9356 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