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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 169.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9117/0.9117, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.764/1.764, allocations: 389 MB / 0.633 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.798e-06/3.798e-06, allocations: 4 kB / 0.9996 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.093e-05/2.473e-05, allocations: 8.953 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001554/0.001579, allocations: 0.7013 MB / 1 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.002746, allocations: 1.225 MB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.594e-05/0.002792, allocations: 4 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.723e-05/0.002819, allocations: 3.938 kB / 1.002 GB, free: 11.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.488e-05/0.002884, allocations: 11.86 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004416/0.003325, allocations: 154.4 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.003466, allocations: 115.7 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.229e-05/0.003558, allocations: 11.98 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.899e-05/0.003657, allocations: 67.88 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.703e-05/0.003734, allocations: 35.95 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.003758, allocations: 12 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.307e-05/0.003821, allocations: 35.91 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.003841, allocations: 7.938 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.61e-05/0.003887, allocations: 39.95 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.004041, allocations: 131.6 kB / 1.002 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.004043, allocations: 0 / 1.002 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.203e-06/0.004044, allocations: 0 / 1.002 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.004048, allocations: 4 kB / 1.002 GB, free: 10.96 MB / 0.9636 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.0004438/0.004492, allocations: 335.8 kB / 1.002 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.00453, allocations: 8.75 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.597e-05/0.004556, allocations: 38.75 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.077e-05/0.004627, allocations: 8.938 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.212e-05/0.004699, allocations: 113.7 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.004712, allocations: 4.375 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.004727, allocations: 8.375 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.004858, allocations: 66.16 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.004865, allocations: 192 / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-06/0.004874, allocations: 4.375 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.004881, allocations: 4.125 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.533e-05/0.004976, allocations: 43.95 kB / 1.003 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00035/0.005326, allocations: 271.8 kB / 1.003 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.005433, allocations: 54.48 kB / 1.003 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.106e-05/0.005485, allocations: 28.88 kB / 1.003 GB, free: 9.863 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.005502, allocations: 0 / 1.003 GB, free: 9.863 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.005669, allocations: 95.41 kB / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.00567, allocations: 0 / 1.003 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002822/0.005953, allocations: 145.4 kB / 1.003 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.005994, allocations: 55.41 kB / 1.003 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.225e-05/0.006066, allocations: 117.8 kB / 1.003 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.006083, allocations: 25.7 kB / 1.004 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.006129, allocations: 88.14 kB / 1.004 GB, free: 9.297 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.00615, allocations: 27.83 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.165e-05/0.006202, allocations: 37.7 kB / 1.004 GB, free: 9.227 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.987e-05/0.006292, allocations: 318.8 kB / 1.004 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.006406, allocations: 77.67 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.006519, allocations: 105.1 kB / 1.004 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.006684, allocations: 137 kB / 1.004 GB, free: 8.551 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.006687, allocations: 3.938 kB / 1.004 GB, free: 8.547 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002772/0.006964, allocations: 229 kB / 1.004 GB, free: 8.305 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.007, allocations: 37.69 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.00701, allocations: 7.984 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.007025, allocations: 0 / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.174e-05/0.007097, allocations: 11.98 kB / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.007105, allocations: 4 kB / 1.005 GB, free: 8.238 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.007211, allocations: 39.92 kB / 1.005 GB, free: 8.199 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.007232, allocations: 11.98 kB / 1.005 GB, free: 8.188 MB / 0.9636 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 8.699e-05/0.007319, allocations: 121.8 kB / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.007328, allocations: 0 / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002037/0.007532, allocations: 122 kB / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.007534, allocations: 0 / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.007539, allocations: 0 / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.007544, allocations: 0 / 1.005 GB, free: 7.934 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.007812, allocations: 325.6 kB / 1.005 GB, free: 7.566 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.007814, allocations: 4 kB / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.249e-05/0.007847, allocations: 15.92 kB / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.007849, allocations: 0 / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.00786, allocations: 7.984 kB / 1.005 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.007862, allocations: 0 / 1.005 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.007863, allocations: 3.938 kB / 1.005 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.008028, allocations: 203.4 kB / 1.005 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-06/0.008037, allocations: 7.953 kB / 1.005 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.00805, allocations: 480 / 1.005 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.33e-05/0.008093, allocations: 7.984 kB / 1.005 GB, free: 7.305 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.397e-05/0.008127, allocations: 4 kB / 1.005 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.008136, allocations: 11.98 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.57e-05/0.008172, allocations: 95.16 kB / 1.005 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.008172, allocations: 0 / 1.005 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001855/0.008357, allocations: 20 kB / 1.005 GB, free: 7.176 MB / 0.9636 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.0003819/0.008739, allocations: 0.7474 MB / 1.006 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002292/0.008968, allocations: 185 kB / 1.006 GB, free: 6.199 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.008969, allocations: 0 / 1.006 GB, free: 6.199 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.116e-05/0.009031, allocations: 35.91 kB / 1.006 GB, free: 6.164 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.00922, allocations: 24.83 kB / 1.006 GB, free: 6.145 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.01066, allocations: 1.751 MB / 1.008 GB, free: 4.258 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.752e-05/0.01072, allocations: 67.34 kB / 1.008 GB, free: 4.172 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.802e-05/0.01075, allocations: 4 kB / 1.008 GB, free: 4.168 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.01079, allocations: 28.42 kB / 1.008 GB, free: 4.141 MB / 0.9636 GB Notification: Performance of SimCode: time 7.21e-07/0.01079, allocations: 3.938 kB / 1.008 GB, free: 4.137 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.02554, allocations: 3.231 MB / 1.011 GB, free: 1.07 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.759/6.784, allocations: 19.97 kB / 1.011 GB, free: 1.051 MB / 0.9636 GB " [Timeout remaining time 293] (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 800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable triggeredMax.trigger in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.943933414295316]