Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00197/0.00197, allocations: 88.39 kB / 20.23 MB, free: 4.176 MB / 18.57 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.002524/0.002524, allocations: 161.3 kB / 23.54 MB, free: 0.8711 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 1.642/1.642, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.929/2.929, allocations: 377.8 MB / 0.6232 GB, free: 8.539 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.966e-06/2.966e-06, allocations: 0 / 0.8108 GB, free: 2.129 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.224e-05/3.521e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002342/0.002377, allocations: 0.7284 MB / 0.8115 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002182/0.00456, allocations: 1.217 MB / 0.8127 GB, free: 192 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.479e-05/0.004624, allocations: 1.594 kB / 0.8127 GB, free: 192 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.88e-05/0.004663, allocations: 7.922 kB / 0.8127 GB, free: 184 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.481e-05/0.004758, allocations: 15.88 kB / 0.8127 GB, free: 168 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006575/0.005416, allocations: 136.2 kB / 0.8128 GB, free: 32 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.005676, allocations: 121 kB / 0.813 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.005781, allocations: 15.89 kB / 0.813 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.005959, allocations: 69.14 kB / 0.813 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.00609, allocations: 31.94 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.499e-05/0.006125, allocations: 8 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.877e-05/0.006224, allocations: 27.98 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.414e-05/0.006258, allocations: 17.83 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.74e-05/0.006336, allocations: 31.97 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.006635, allocations: 135.6 kB / 0.8133 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.006639, allocations: 0 / 0.8133 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.51e-07/0.00664, allocations: 0 / 0.8133 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.006646, allocations: 1.375 kB / 0.8133 GB, free: 15.59 MB / 0.7761 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.0007679/0.007414, allocations: 335.8 kB / 0.8136 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.007463, allocations: 8.031 kB / 0.8136 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.007633, allocations: 14.45 kB / 0.8136 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.007774, allocations: 113.7 kB / 0.8137 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.007799, allocations: 8.375 kB / 0.8137 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.127e-05/0.00783, allocations: 12.36 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.008077, allocations: 63.56 kB / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.008087, allocations: 192 / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.008099, allocations: 384 / 0.8138 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.008108, allocations: 6.312 kB / 0.8138 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.008319, allocations: 43.83 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.008847, allocations: 252.5 kB / 0.8141 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.009041, allocations: 44.72 kB / 0.8141 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.009154, allocations: 28.92 kB / 0.8142 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.009182, allocations: 4 kB / 0.8142 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.009474, allocations: 96.44 kB / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.009475, allocations: 0 / 0.8143 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0005397/0.01001, allocations: 135.7 kB / 0.8144 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.01007, allocations: 59.34 kB / 0.8145 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.0102, allocations: 125.7 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.01024, allocations: 26.23 kB / 0.8146 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/0.01032, allocations: 88.14 kB / 0.8147 GB, free: 14 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.01035, allocations: 25.22 kB / 0.8147 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.931e-05/0.01044, allocations: 37.69 kB / 0.8147 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001883/0.01063, allocations: 314.8 kB / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.01084, allocations: 82.81 kB / 0.8151 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.01106, allocations: 105.1 kB / 0.8152 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.01137, allocations: 134.7 kB / 0.8153 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01137, allocations: 1.031 kB / 0.8153 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005526/0.01193, allocations: 241.7 kB / 0.8156 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.759e-05/0.01197, allocations: 31.23 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.01198, allocations: 4 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.01201, allocations: 4 kB / 0.8156 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.01212, allocations: 15.92 kB / 0.8156 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.01212, allocations: 5 kB / 0.8156 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.01234, allocations: 41.97 kB / 0.8157 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.01237, allocations: 4 kB / 0.8157 GB, free: 12.9 MB / 0.7761 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.0003867/0.01275, allocations: 121.8 kB / 0.8158 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.582e-05/0.01278, allocations: 7.938 kB / 0.8158 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003382/0.01312, allocations: 116.3 kB / 0.8159 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.01313, allocations: 4 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01313, allocations: 0 / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.01313, allocations: 0 / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004772/0.01361, allocations: 303.2 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01361, allocations: 5.688 kB / 0.8162 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.494e-05/0.01368, allocations: 7.984 kB / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.01368, allocations: 0 / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.0137, allocations: 7.938 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.0137, allocations: 0.5 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.0137, allocations: 0 / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.01406, allocations: 208.7 kB / 0.8164 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.01408, allocations: 11.89 kB / 0.8164 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.0141, allocations: 4.5 kB / 0.8164 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.371e-05/0.0142, allocations: 8.578 kB / 0.8165 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.01425, allocations: 8.641 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.01426, allocations: 4 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.939e-05/0.01432, allocations: 88.39 kB / 0.8165 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01432, allocations: 0 / 0.8165 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002882/0.01461, allocations: 27.34 kB / 0.8166 GB, free: 11.93 MB / 0.7761 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.0001996/0.01481, allocations: 111.4 kB / 0.8167 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004537/0.01527, allocations: 181 kB / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.01527, allocations: 0 / 0.8169 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.0154, allocations: 38.2 kB / 0.8169 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.01575, allocations: 17.61 kB / 0.8169 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004531/0.01621, allocations: 158.5 kB / 0.8171 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.195e-05/0.0163, allocations: 72.27 kB / 0.8171 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.509e-05/0.01633, allocations: 5.125 kB / 0.8171 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.01637, allocations: 12.5 kB / 0.8171 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of SimCode: time 8.31e-07/0.01637, allocations: 1.125 kB / 0.8171 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of Templates: time 0.005297/0.02167, allocations: 1.543 MB / 0.8187 GB, free: 9.793 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.031489282962866]