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.001977/0.001977, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.002121/0.002121, allocations: 165.3 kB / 23.55 MB, free: 0.8672 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.589/1.589, allocations: 177.1 MB / 203.9 MB, free: 5.617 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 3.037/3.037, allocations: 377.8 MB / 0.6232 GB, free: 8.504 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.124e-06/2.124e-06, allocations: 0 / 0.8108 GB, free: 2.098 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.002e-05/3.214e-05, allocations: 5.797 kB / 0.8108 GB, free: 2.094 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002044/0.002076, allocations: 0.7303 MB / 0.8115 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.004004, allocations: 1.222 MB / 0.8127 GB, free: 156 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.004055, allocations: 0.6562 kB / 0.8127 GB, free: 156 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.855e-05/0.004083, allocations: 3.938 kB / 0.8127 GB, free: 152 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 8.366e-05/0.004167, allocations: 9.188 kB / 0.8127 GB, free: 144 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005766/0.004744, allocations: 149.3 kB / 0.8128 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.005085, allocations: 115.8 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.458e-05/0.00518, allocations: 11.98 kB / 0.813 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.005319, allocations: 63.89 kB / 0.813 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.00543, allocations: 47.81 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.005463, allocations: 8.781 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.659e-05/0.005549, allocations: 27.92 kB / 0.8131 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.502e-05/0.005574, allocations: 9.047 kB / 0.8131 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.287e-05/0.005647, allocations: 39.91 kB / 0.8132 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.005899, allocations: 131.5 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.005902, allocations: 0.6562 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.192e-06/0.005903, allocations: 0.625 kB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.005908, allocations: 4 kB / 0.8133 GB, free: 15.55 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.0007436/0.006652, allocations: 423.1 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.006696, allocations: 11.97 kB / 0.8137 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.006857, allocations: 16.83 kB / 0.8137 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.006992, allocations: 122.8 kB / 0.8138 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.007013, allocations: 8.312 kB / 0.8138 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.007036, allocations: 8.375 kB / 0.8139 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.007248, allocations: 58.23 kB / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.007258, allocations: 192 / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.007268, allocations: 1.156 kB / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.007275, allocations: 4.359 kB / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.00742, allocations: 40.56 kB / 0.814 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.007984, allocations: 308.4 kB / 0.8142 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001563/0.008141, allocations: 52.45 kB / 0.8143 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.283e-05/0.008223, allocations: 27.77 kB / 0.8143 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.008245, allocations: 0 / 0.8143 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.00844, allocations: 90.45 kB / 0.8144 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.008441, allocations: 4 kB / 0.8144 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7): time 0.0004263/0.008867, allocations: 129.6 kB / 0.8145 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.008918, allocations: 53.22 kB / 0.8146 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.009074, allocations: 185.8 kB / 0.8148 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.009108, allocations: 29.7 kB / 0.8148 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.864e-05/0.009207, allocations: 138.9 kB / 0.8149 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.009236, allocations: 21.02 kB / 0.8149 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/0.009325, allocations: 43.36 kB / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002632/0.009588, allocations: 0.4923 MB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00018/0.009768, allocations: 83.14 kB / 0.8155 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.009969, allocations: 124.4 kB / 0.8157 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.01022, allocations: 129 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01022, allocations: 0.5625 kB / 0.8158 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004884/0.01071, allocations: 246.1 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.169e-05/0.01076, allocations: 37.69 kB / 0.8161 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01076, allocations: 0.875 kB / 0.8161 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.01079, allocations: 4 kB / 0.8161 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.38e-05/0.01088, allocations: 8.531 kB / 0.8161 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.01089, allocations: 3.938 kB / 0.8161 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.01106, allocations: 33.3 kB / 0.8161 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.01109, allocations: 8 kB / 0.8161 GB, free: 12.38 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.0001549/0.01124, allocations: 169.7 kB / 0.8163 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.01127, allocations: 15.92 kB / 0.8163 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.01154, allocations: 103 kB / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01155, allocations: 0 / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01155, allocations: 0.8438 kB / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01155, allocations: 0 / 0.8164 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.01201, allocations: 358.7 kB / 0.8167 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01201, allocations: 0 / 0.8167 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.625e-05/0.01206, allocations: 4 kB / 0.8167 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.01206, allocations: 4.516 kB / 0.8167 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.01207, allocations: 4 kB / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.01207, allocations: 0.6562 kB / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01207, allocations: 0 / 0.8167 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.01241, allocations: 257.5 kB / 0.817 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.164e-05/0.01242, allocations: 7.953 kB / 0.817 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.01244, allocations: 4 kB / 0.817 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.375e-05/0.01252, allocations: 4 kB / 0.817 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.01257, allocations: 8.859 kB / 0.817 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.01258, allocations: 0 / 0.817 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.434e-05/0.01267, allocations: 138.6 kB / 0.8171 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01267, allocations: 0 / 0.8171 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002638/0.01294, allocations: 24 kB / 0.8172 GB, free: 11.23 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.0001851/0.01312, allocations: 103.3 kB / 0.8173 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004297/0.01355, allocations: 212.7 kB / 0.8175 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.01355, allocations: 0 / 0.8175 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.01365, allocations: 36.23 kB / 0.8175 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.01396, allocations: 27.23 kB / 0.8175 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004522/0.01441, allocations: 167.1 kB / 0.8177 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.883e-05/0.0145, allocations: 68.38 kB / 0.8178 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.471e-05/0.01454, allocations: 9.078 kB / 0.8178 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.01457, allocations: 12.5 kB / 0.8178 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of SimCode: time 8.21e-07/0.01457, allocations: 3.938 kB / 0.8178 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of Templates: time 0.005434/0.02001, allocations: 1.544 MB / 0.8193 GB, free: 9.051 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 240] 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.213235115050338]