Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_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.001247/0.001247, allocations: 108 kB / 15.61 MB, free: 152 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.00127/0.00127, allocations: 197 kB / 16.53 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.569/2.569, allocations: 469.4 MB / 0.742 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 63.69 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2364, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001864/0.2383, allocations: 0.7198 MB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.2397, allocations: 1.187 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.229e-05/0.2398, allocations: 4 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.723e-05/0.2398, allocations: 3.938 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.288e-05/0.2399, allocations: 11.86 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.2404, allocations: 141.7 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.2406, allocations: 119.7 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.308e-05/0.2407, allocations: 15.98 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.625e-05/0.2408, allocations: 51.91 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.629e-05/0.2408, allocations: 43.81 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.2409, allocations: 8 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.333e-05/0.2409, allocations: 27.98 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.846e-05/0.241, allocations: 4 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.287e-05/0.241, allocations: 47.83 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.2412, allocations: 104 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2412, allocations: 7.938 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.306e-06/0.2412, allocations: 0 / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2412, allocations: 3.938 kB / 1.066 GB, free: 12.02 MB / 0.8262 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.000526/0.2418, allocations: 409 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2418, allocations: 8.031 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.173e-05/0.2418, allocations: 38.73 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.429e-05/0.2419, allocations: 12.84 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.136e-05/0.242, allocations: 164.3 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.242, allocations: 4.375 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.242, allocations: 8.375 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.2422, allocations: 62.22 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.2422, allocations: 7.938 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2423, allocations: 7.984 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.2423, allocations: 7.922 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.2425, allocations: 39.97 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004244/0.2429, allocations: 328.7 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.2431, allocations: 50.56 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2432, allocations: 36.86 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.2432, allocations: 0 / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002244/0.2434, allocations: 87.36 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.2434, allocations: 0 / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004251/0.2439, allocations: 137.5 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.2439, allocations: 59.41 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.304e-05/0.244, allocations: 121.7 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.244, allocations: 29.7 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.065e-05/0.2441, allocations: 96.11 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.2441, allocations: 19.81 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.594e-05/0.2442, allocations: 33.69 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.2443, allocations: 322.8 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.2444, allocations: 47.95 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.2446, allocations: 71.41 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/0.2449, allocations: 133 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2449, allocations: 0 / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004159/0.2453, allocations: 195.2 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.2453, allocations: 41.77 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2453, allocations: 0 / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2454, allocations: 4 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.179e-05/0.2455, allocations: 15.92 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2455, allocations: 0 / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.2457, allocations: 39.86 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.2457, allocations: 11.98 kB / 1.069 GB, free: 9.141 MB / 0.8262 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.366e-05/0.2458, allocations: 125.7 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.2458, allocations: 7.906 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000289/0.2461, allocations: 110 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2461, allocations: 0 / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.2462, allocations: 7.984 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2462, allocations: 0 / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004151/0.2466, allocations: 366.5 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.2466, allocations: 0 / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-05/0.2467, allocations: 7.938 kB / 1.069 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2467, allocations: 4 kB / 1.069 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.2467, allocations: 3.984 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2467, allocations: 4 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.2467, allocations: 3.938 kB / 1.069 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.247, allocations: 203.5 kB / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.2471, allocations: 81.02 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.2471, allocations: 8 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.2472, allocations: 8.453 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.2472, allocations: 3.938 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2472, allocations: 7.984 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.511e-05/0.2473, allocations: 91.22 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2473, allocations: 0 / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002732/0.2476, allocations: 28 kB / 1.07 GB, free: 7.984 MB / 0.8262 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.0005808/0.2482, allocations: 0.7363 MB / 1.07 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003678/0.2485, allocations: 179.3 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2486, allocations: 0 / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.2487, allocations: 39.91 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.2489, allocations: 17.28 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.2508, allocations: 1.631 MB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.251, allocations: 0.6846 MB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.749e-05/0.2511, allocations: 4 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.2511, allocations: 19.44 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of SimCode: time 1.663e-06/0.2511, allocations: 0 / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01742/0.2685, allocations: 2.419 MB / 1.075 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/7.075, allocations: 18.47 kB / 1.075 GB, free: 2.188 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches