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.004896/0.004896, allocations: 101.2 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.001095/0.001095, allocations: 200.5 kB / 16.68 MB, free: 5.984 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.365/1.365, 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 9.1.3-maint.9.1.x/package.mo): time 2.329/2.329, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002647/0.002647, allocations: 61.94 kB / 0.9504 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3453, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002055/0.3474, allocations: 0.7235 MB / 1.088 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001606/0.349, allocations: 1.192 MB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.81e-05/0.3491, allocations: 4 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.515e-05/0.3492, allocations: 3.938 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.495e-05/0.3492, allocations: 3.938 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.3498, allocations: 154.6 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00018/0.35, allocations: 111.7 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.3502, allocations: 27.97 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.686e-05/0.3502, allocations: 43.91 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.3504, allocations: 51.8 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.3504, allocations: 12 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.932e-05/0.3505, allocations: 20 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.214e-05/0.3505, allocations: 7.984 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.397e-05/0.3506, allocations: 43.84 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.3508, allocations: 115.6 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3508, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3508, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.3508, allocations: 4 kB / 1.09 GB, free: 15.5 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.0006016/0.3514, allocations: 408.7 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3515, allocations: 8.031 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.268e-05/0.3515, allocations: 38.73 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.786e-05/0.3516, allocations: 8.844 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.3517, allocations: 168.3 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.3517, allocations: 8.312 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.3517, allocations: 8.375 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.352, allocations: 70.22 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.352, allocations: 7.875 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.352, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.352, allocations: 4 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.3522, allocations: 43.95 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/0.3527, allocations: 328.7 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.3529, allocations: 50.48 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.794e-05/0.353, allocations: 32.92 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.353, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.3532, allocations: 87.36 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3532, allocations: 0 / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004378/0.3537, allocations: 133.5 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3537, allocations: 63.34 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.9e-05/0.3538, allocations: 109.8 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.3538, allocations: 29.7 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.3539, allocations: 96.03 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.354, allocations: 19.88 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.354, allocations: 33.7 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3541, allocations: 326.8 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.3543, allocations: 43.97 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.3545, allocations: 79.33 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.3547, allocations: 133 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3548, allocations: 4 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004073/0.3552, allocations: 187.2 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.3552, allocations: 39.33 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3552, allocations: 4 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3553, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.3554, allocations: 19.92 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3554, allocations: 480 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.3556, allocations: 39.8 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.3556, allocations: 8 kB / 1.092 GB, free: 12.63 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 9.892e-05/0.3557, allocations: 121.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.339e-05/0.3557, allocations: 7.984 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.356, allocations: 121.8 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.3561, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3561, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3561, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.3565, allocations: 362.9 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3565, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.493e-05/0.3566, allocations: 11.92 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.3566, allocations: 8 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.3566, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3566, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3566, allocations: 4.016 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.357, allocations: 207.5 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.357, allocations: 85 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.3571, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.3572, allocations: 7.984 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.537e-05/0.3572, allocations: 3.938 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.3572, allocations: 8 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.503e-05/0.3573, allocations: 91.27 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3573, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002684/0.3576, allocations: 24 kB / 1.093 GB, free: 11.48 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.0006442/0.3582, allocations: 0.7475 MB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003859/0.3586, allocations: 171.3 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3586, allocations: 3.938 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.3587, allocations: 31.98 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.359, allocations: 16.2 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.3612, allocations: 1.633 MB / 1.096 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3615, allocations: 0.6885 MB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.772e-05/0.3616, allocations: 11.75 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.693e-05/0.3616, allocations: 23.42 kB / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of SimCode: time 5.92e-07/0.3616, allocations: 0 / 1.097 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.3837, allocations: 2.442 MB / 1.099 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/8.035, allocations: 4.234 kB / 1.099 GB, free: 5.648 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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