Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.TriggeredMax,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_11_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.001412/0.001412, allocations: 108 kB / 15.6 MB, free: 132 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.001363/0.001363, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.249/1.249, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.457/2.457, allocations: 469.8 MB / 0.7424 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 67.2 kB / 0.9087 GB, free: 34.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2387, allocations: 159.1 MB / 1.064 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.00185/0.2406, allocations: 0.7321 MB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.2421, allocations: 1.188 MB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.2422, allocations: 3.938 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.2422, allocations: 3.984 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.664e-05/0.2423, allocations: 11.86 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.2427, allocations: 138.8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.2429, allocations: 123.8 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.792e-05/0.243, allocations: 11.98 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.096e-05/0.243, allocations: 47.84 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.389e-05/0.2431, allocations: 51.81 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.2432, allocations: 12 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.574e-05/0.2432, allocations: 23.98 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.177e-05/0.2432, allocations: 11.98 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.316e-05/0.2433, allocations: 39.84 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.2435, allocations: 108 kB / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.72 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.0005891/0.2441, allocations: 413 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.2441, allocations: 8.031 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.244e-05/0.2442, allocations: 34.75 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.2442, allocations: 8.844 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.2444, allocations: 176.2 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.2444, allocations: 12.25 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.2444, allocations: 8.375 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.2446, allocations: 66.22 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.2446, allocations: 3.938 kB / 1.067 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.2446, allocations: 4 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.2446, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.2448, allocations: 43.95 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.2453, allocations: 328.6 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.2454, allocations: 50.55 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.803e-05/0.2455, allocations: 32.92 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.2455, allocations: 4 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.2457, allocations: 83.36 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.086e-06/0.2457, allocations: 4 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004014/0.2462, allocations: 129.5 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.2462, allocations: 63.41 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.418e-05/0.2463, allocations: 109.8 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.2463, allocations: 29.7 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.831e-05/0.2464, allocations: 96.03 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.2464, allocations: 15.88 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.406e-05/0.2465, allocations: 37.7 kB / 1.068 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2466, allocations: 326.8 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.2468, allocations: 43.97 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.2469, allocations: 75.39 kB / 1.069 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.2472, allocations: 137 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2472, allocations: 0 / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003948/0.2476, allocations: 195.2 kB / 1.069 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.2476, allocations: 35.09 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2477, allocations: 8.062 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.2477, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.929e-05/0.2478, allocations: 15.98 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.2478, allocations: 4.469 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.248, allocations: 39.8 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.248, allocations: 4 kB / 1.069 GB, free: 8.848 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.535e-05/0.2481, allocations: 135 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.2481, allocations: 11.89 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.2484, allocations: 110 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2484, allocations: 8.078 kB / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2484, allocations: 0 / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.2484, allocations: 0 / 1.069 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.2489, allocations: 366.4 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2489, allocations: 0 / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.061e-05/0.2489, allocations: 11.98 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.2489, allocations: 0 / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.2489, allocations: 0 / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.249, allocations: 0 / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.249, allocations: 3.938 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/0.2492, allocations: 208 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.2493, allocations: 92.94 kB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.2493, allocations: 0 / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.2494, allocations: 4 kB / 1.07 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.2494, allocations: 15.92 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2495, allocations: 0 / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.659e-05/0.2495, allocations: 91.27 kB / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2495, allocations: 0 / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000235/0.2497, allocations: 20 kB / 1.07 GB, free: 7.688 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.0005819/0.2503, allocations: 0.7436 MB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000351/0.2507, allocations: 171.3 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2507, allocations: 0 / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.2508, allocations: 39.92 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.2511, allocations: 24.14 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2529, allocations: 1.633 MB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.2532, allocations: 0.6885 MB / 1.073 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.825e-05/0.2533, allocations: 7.984 kB / 1.073 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.379e-05/0.2533, allocations: 15.44 kB / 1.073 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2533, allocations: 4 kB / 1.073 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7822/1.036, allocations: 2.403 MB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/11.34, allocations: 11.47 kB / 1.076 GB, free: 1.875 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches