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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 108.9 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 195.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 247.8 MB, free: 13.91 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.69/2.69, allocations: 476.7 MB / 0.7611 GB, free: 11.3 MB / 0.6231 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 67.91 kB / 1.104 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.782, allocations: 168.7 MB / 1.269 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002275/0.7843, allocations: 0.73 MB / 1.269 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.7861, allocations: 1.191 MB / 1.271 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.152e-05/0.7861, allocations: 4 kB / 1.271 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.258e-05/0.7862, allocations: 7.875 kB / 1.271 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.227e-05/0.7862, allocations: 11.92 kB / 1.271 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006249/0.7869, allocations: 146.9 kB / 1.271 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.7871, allocations: 119.8 kB / 1.271 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.7872, allocations: 11.98 kB / 1.271 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.7873, allocations: 47.89 kB / 1.271 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.7874, allocations: 43.89 kB / 1.271 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.7875, allocations: 8 kB / 1.271 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.7875, allocations: 23.98 kB / 1.271 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.889e-05/0.7876, allocations: 15.91 kB / 1.271 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.7876, allocations: 43.86 kB / 1.271 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.7879, allocations: 117.4 kB / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.7879, allocations: 0 / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7879, allocations: 0 / 1.271 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.263e-06/0.7879, allocations: 0 / 1.271 GB, free: 2.637 MB / 0.9669 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.0006985/0.7886, allocations: 407 kB / 1.272 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.7886, allocations: 8.031 kB / 1.272 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.7886, allocations: 34.75 kB / 1.272 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.484e-05/0.7887, allocations: 12.89 kB / 1.272 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.7888, allocations: 184.2 kB / 1.272 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.7889, allocations: 4.375 kB / 1.272 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.7889, allocations: 12.38 kB / 1.272 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.7891, allocations: 58.22 kB / 1.272 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.7891, allocations: 7.875 kB / 1.272 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.7891, allocations: 8 kB / 1.272 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.7891, allocations: 0 / 1.272 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.7893, allocations: 43.95 kB / 1.272 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.7898, allocations: 316.8 kB / 1.272 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.79, allocations: 46.55 kB / 1.272 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.467e-05/0.7901, allocations: 32.88 kB / 1.272 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.7901, allocations: 0 / 1.272 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.7904, allocations: 91.36 kB / 1.272 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.7904, allocations: 0 / 1.272 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000433/0.7908, allocations: 145.6 kB / 1.273 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.7909, allocations: 55.34 kB / 1.273 GB, free: 1 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.791, allocations: 117.8 kB / 1.273 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.791, allocations: 25.7 kB / 1.273 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.942e-05/0.7911, allocations: 92.09 kB / 1.273 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.7911, allocations: 23.83 kB / 1.273 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.412e-05/0.7912, allocations: 33.7 kB / 1.273 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.7913, allocations: 322.8 kB / 1.273 GB, free: 372 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.7914, allocations: 47.97 kB / 1.273 GB, free: 324 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.7916, allocations: 79.39 kB / 1.273 GB, free: 232 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.7919, allocations: 125 kB / 1.273 GB, free: 88 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7919, allocations: 0 / 1.273 GB, free: 88 kB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004518/0.7923, allocations: 203.2 kB / 1.274 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.608e-05/0.7924, allocations: 37.69 kB / 1.274 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.7924, allocations: 0 / 1.274 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.7924, allocations: 4 kB / 1.274 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.515e-05/0.7925, allocations: 15.92 kB / 1.274 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.7925, allocations: 0 / 1.274 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.7927, allocations: 39.97 kB / 1.274 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.7927, allocations: 11.98 kB / 1.274 GB, free: 15.76 MB / 0.9825 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.876e-05/0.7928, allocations: 117.8 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.728e-05/0.7928, allocations: 7.953 kB / 1.274 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002999/0.7931, allocations: 117.9 kB / 1.274 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.7931, allocations: 0 / 1.274 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.7931, allocations: 4 kB / 1.274 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.7931, allocations: 4.078 kB / 1.274 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004587/0.7936, allocations: 362.9 kB / 1.274 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.7936, allocations: 0 / 1.274 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.278e-05/0.7937, allocations: 15.92 kB / 1.274 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.7937, allocations: 0 / 1.274 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.7937, allocations: 4.469 kB / 1.274 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.7937, allocations: 0 / 1.274 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.7937, allocations: 11.94 kB / 1.274 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.794, allocations: 203.5 kB / 1.275 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.854e-05/0.7941, allocations: 85 kB / 1.275 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.7941, allocations: 7.938 kB / 1.275 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.719e-05/0.7942, allocations: 7.984 kB / 1.275 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.7942, allocations: 11.92 kB / 1.275 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.7942, allocations: 8 kB / 1.275 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.138e-05/0.7943, allocations: 87.27 kB / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.7943, allocations: 0 / 1.275 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002567/0.7945, allocations: 24 kB / 1.275 GB, free: 14.59 MB / 0.9825 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.0006664/0.7952, allocations: 0.7402 MB / 1.275 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003722/0.7956, allocations: 155.3 kB / 1.276 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.7956, allocations: 4 kB / 1.276 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.7957, allocations: 31.97 kB / 1.276 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.796, allocations: 16.05 kB / 1.276 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.7982, allocations: 1.653 MB / 1.277 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.7985, allocations: 0.6846 MB / 1.278 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.877e-05/0.7986, allocations: 7.984 kB / 1.278 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.7986, allocations: 15.44 kB / 1.278 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.7986, allocations: 0 / 1.278 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.8262, allocations: 2.463 MB / 1.28 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/9.155, allocations: 12.81 kB / 1.28 GB, free: 8.766 MB / 0.9825 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.093089438974857]