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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007804/0.007804, allocations: 96.5 kB / 15.73 MB, free: 6.043 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.002135/0.002135, allocations: 195.6 kB / 16.68 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 1.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.938/2.938, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 64.12 kB / 1.083 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2976, allocations: 162.2 MB / 1.241 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001886/0.2995, allocations: 0.7205 MB / 1.242 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.3011, allocations: 1.19 MB / 1.243 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.291e-05/0.3011, allocations: 0 / 1.243 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.3012, allocations: 3.938 kB / 1.243 GB, free: 8.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.3012, allocations: 11.86 kB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000501/0.3017, allocations: 139.3 kB / 1.243 GB, free: 8.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.3019, allocations: 123.8 kB / 1.244 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.764e-05/0.302, allocations: 15.97 kB / 1.244 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.961e-05/0.3021, allocations: 47.84 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3022, allocations: 51.81 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.3023, allocations: 12 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.646e-05/0.3023, allocations: 23.98 kB / 1.244 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.311e-05/0.3024, allocations: 11.98 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.159e-05/0.3025, allocations: 43.84 kB / 1.244 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.3026, allocations: 107.7 kB / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3027, allocations: 0 / 1.244 GB, free: 7.746 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3027, allocations: 3.938 kB / 1.244 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3027, allocations: 3.938 kB / 1.244 GB, free: 7.738 MB / 0.9981 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.0005956/0.3033, allocations: 409 kB / 1.244 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3033, allocations: 12.03 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.3034, allocations: 34.75 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.3034, allocations: 8.891 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3035, allocations: 176.2 kB / 1.244 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3036, allocations: 4.375 kB / 1.245 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.3036, allocations: 4.375 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.3038, allocations: 66.22 kB / 1.245 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3038, allocations: 7.922 kB / 1.245 GB, free: 6.922 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.3038, allocations: 4 kB / 1.245 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3038, allocations: 0 / 1.245 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.304, allocations: 43.95 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004756/0.3045, allocations: 328.6 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3047, allocations: 54.55 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.3048, allocations: 28.94 kB / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.3048, allocations: 0 / 1.245 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.3051, allocations: 83.36 kB / 1.245 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 3.356e-06/0.3051, allocations: 0 / 1.245 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004501/0.3055, allocations: 145.7 kB / 1.245 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.3056, allocations: 51.41 kB / 1.245 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.486e-05/0.3057, allocations: 113.8 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.3057, allocations: 25.7 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.3058, allocations: 96.16 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.3058, allocations: 23.83 kB / 1.246 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.059e-05/0.3059, allocations: 33.7 kB / 1.246 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3061, allocations: 326.8 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3062, allocations: 47.97 kB / 1.246 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.3064, allocations: 79.7 kB / 1.246 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.3067, allocations: 129 kB / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3067, allocations: 4.031 kB / 1.246 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004453/0.3072, allocations: 199.1 kB / 1.246 GB, free: 4.973 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.563e-05/0.3072, allocations: 41.69 kB / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3072, allocations: 0 / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3073, allocations: 0 / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.445e-05/0.3074, allocations: 20.05 kB / 1.246 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3074, allocations: 8.062 kB / 1.246 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.3076, allocations: 31.97 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3076, allocations: 7.984 kB / 1.246 GB, free: 4.859 MB / 0.9981 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.0001046/0.3077, allocations: 126.2 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.3077, allocations: 3.953 kB / 1.247 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/0.3081, allocations: 118 kB / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.3081, allocations: 0 / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3081, allocations: 0 / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3081, allocations: 0 / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000464/0.3086, allocations: 366.4 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3086, allocations: 0 / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.3087, allocations: 15.98 kB / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3087, allocations: 0 / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.3087, allocations: 0 / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3087, allocations: 0 / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3087, allocations: 3.938 kB / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.309, allocations: 207.4 kB / 1.247 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.085e-05/0.3091, allocations: 85.06 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.3091, allocations: 4 kB / 1.247 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.457e-05/0.3092, allocations: 11.98 kB / 1.247 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.3093, allocations: 12.02 kB / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.3093, allocations: 3.984 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.447e-05/0.3093, allocations: 91.27 kB / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3093, allocations: 0 / 1.247 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002715/0.3096, allocations: 27.94 kB / 1.247 GB, free: 3.695 MB / 0.9981 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.0006825/0.3103, allocations: 0.74 MB / 1.248 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003856/0.3107, allocations: 167.3 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.3107, allocations: 0 / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.3108, allocations: 40.03 kB / 1.248 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.3111, allocations: 23.86 kB / 1.248 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.3132, allocations: 1.648 MB / 1.25 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.3136, allocations: 0.6846 MB / 1.251 GB, free: 236 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.3136, allocations: 7.984 kB / 1.251 GB, free: 228 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.3136, allocations: 19.44 kB / 1.251 GB, free: 208 kB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/0.3137, allocations: 4 kB / 1.251 GB, free: 204 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5355/0.8492, allocations: 2.421 MB / 1.253 GB, free: 14.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/8.36, allocations: 11.64 kB / 1.253 GB, free: 14.79 MB / 0.9981 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 400 --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