Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_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.02092/0.02092, allocations: 103.5 kB / 15.73 MB, free: 6.035 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.002536/0.002536, allocations: 197.5 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 2.318/2.318, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.555/2.555, allocations: 390.3 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 63.16 kB / 0.9504 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4292, allocations: 140.4 MB / 1.087 GB, free: 2.152 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00335/0.4326, allocations: 0.7209 MB / 1.088 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002759/0.4353, allocations: 1.192 MB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.4355, allocations: 0 / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.246e-05/0.4356, allocations: 3.938 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.4357, allocations: 7.938 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.4367, allocations: 144.7 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.4371, allocations: 123.8 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.4372, allocations: 12 kB / 1.09 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.4374, allocations: 51.83 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.4377, allocations: 51.81 kB / 1.09 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.641e-05/0.4377, allocations: 8 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.4379, allocations: 23.98 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.4379, allocations: 11.98 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.4381, allocations: 43.84 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003517/0.4385, allocations: 107.7 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.493e-05/0.4385, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.655e-06/0.4385, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.4385, allocations: 4 kB / 1.09 GB, free: 15.64 MB / 0.8575 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.001068/0.4396, allocations: 404.7 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.762e-05/0.4397, allocations: 12.03 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.4398, allocations: 38.73 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.719e-05/0.4399, allocations: 8.844 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.4401, allocations: 172.3 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.4402, allocations: 4.375 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/0.4402, allocations: 4.375 kB / 1.091 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/0.4405, allocations: 70.22 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.4406, allocations: 3.938 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.4406, allocations: 11.94 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.4406, allocations: 4 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.4409, allocations: 35.95 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007502/0.4417, allocations: 328.7 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.442, allocations: 46.56 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.4421, allocations: 36.86 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.4422, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.4425, allocations: 87.42 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.374e-06/0.4425, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006063/0.4431, allocations: 137.5 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4432, allocations: 55.34 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.4434, allocations: 121.8 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.4434, allocations: 29.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.723e-05/0.4435, allocations: 92.05 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.4435, allocations: 11.81 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.4436, allocations: 41.69 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4438, allocations: 318.8 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002138/0.444, allocations: 51.95 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.4442, allocations: 71.41 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.4446, allocations: 141 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4446, allocations: 3.938 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006745/0.4453, allocations: 191.2 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.914e-05/0.4454, allocations: 33.7 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4454, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.4454, allocations: 4 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.4456, allocations: 19.98 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.4456, allocations: 0 / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.4459, allocations: 43.8 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.4459, allocations: 4 kB / 1.092 GB, free: 12.77 MB / 0.8575 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.000233/0.4461, allocations: 125.8 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.4462, allocations: 4 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004261/0.4466, allocations: 121.8 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.4466, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4466, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4467, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005908/0.4473, allocations: 362.9 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.4473, allocations: 0 / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.391e-05/0.4474, allocations: 23.92 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.4474, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.4474, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4474, allocations: 7.984 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4474, allocations: 3.938 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004052/0.4478, allocations: 199.6 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.4479, allocations: 81.02 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.4479, allocations: 8 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.4481, allocations: 7.984 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.4482, allocations: 7.938 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.4482, allocations: 4.469 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.461e-05/0.4482, allocations: 91.2 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4482, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002758/0.4485, allocations: 24 kB / 1.093 GB, free: 11.61 MB / 0.8575 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.000826/0.4494, allocations: 0.7475 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004075/0.4498, allocations: 171.3 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4498, allocations: 0 / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.45, allocations: 40.09 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.4503, allocations: 17.12 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.4527, allocations: 1.636 MB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004012/0.4532, allocations: 0.6885 MB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.676e-05/0.4532, allocations: 7.75 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.4532, allocations: 19.42 kB / 1.097 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.4533, allocations: 8 kB / 1.097 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.352/3.805, allocations: 2.443 MB / 1.099 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/18.73, allocations: 4.281 kB / 1.099 GB, free: 5.777 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches