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.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 102.1 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 63.91 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9254/0.927, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002319/0.9293, allocations: 0.7221 MB / 1.209 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.931, allocations: 1.19 MB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.179e-05/0.9311, allocations: 0 / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.663e-05/0.9312, allocations: 7.922 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.39e-05/0.9313, allocations: 11.86 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.9319, allocations: 143.2 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.9322, allocations: 119.8 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.9323, allocations: 11.98 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.9324, allocations: 59.83 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.9325, allocations: 47.77 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.9326, allocations: 8 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.994e-05/0.9326, allocations: 23.98 kB / 1.211 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.9327, allocations: 15.98 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.9328, allocations: 43.83 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.933, allocations: 107.7 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.933, allocations: 0 / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.803e-06/0.933, allocations: 0 / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.933, allocations: 4 kB / 1.211 GB, free: 11.14 MB / 0.9356 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.0006754/0.9337, allocations: 398.8 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.9338, allocations: 12.03 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.9338, allocations: 16.84 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.934, allocations: 176.2 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.934, allocations: 8.359 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.934, allocations: 4.375 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.9342, allocations: 70.2 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.9342, allocations: 192 / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.9343, allocations: 3.938 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.9343, allocations: 0 / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.9345, allocations: 47.95 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005633/0.9351, allocations: 324.7 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.9352, allocations: 50.55 kB / 1.212 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.9353, allocations: 28.94 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.9354, allocations: 4 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.9356, allocations: 83.36 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.9356, allocations: 0 / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004736/0.9361, allocations: 141.5 kB / 1.212 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.9362, allocations: 59.41 kB / 1.212 GB, free: 9.559 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.9363, allocations: 118.1 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.9363, allocations: 25.7 kB / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.738e-05/0.9364, allocations: 92.05 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.9364, allocations: 23.83 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.123e-05/0.9365, allocations: 37.64 kB / 1.212 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.9366, allocations: 318.8 kB / 1.213 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.9368, allocations: 51.89 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.937, allocations: 87.33 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.9373, allocations: 125.1 kB / 1.213 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.9373, allocations: 4 kB / 1.213 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004414/0.9378, allocations: 199.1 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.9378, allocations: 41.69 kB / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.9378, allocations: 0 / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.9378, allocations: 0 / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.938, allocations: 11.98 kB / 1.213 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.938, allocations: 4 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.9382, allocations: 32.03 kB / 1.213 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.9382, allocations: 11.98 kB / 1.213 GB, free: 8.316 MB / 0.9356 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.0001082/0.9383, allocations: 125.7 kB / 1.213 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.9384, allocations: 3.906 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003082/0.9387, allocations: 118 kB / 1.214 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.9387, allocations: 0 / 1.214 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.9387, allocations: 4 kB / 1.214 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.9387, allocations: 0 / 1.214 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/0.9392, allocations: 362.4 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.9392, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.765e-05/0.9392, allocations: 12 kB / 1.214 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.9393, allocations: 3.984 kB / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.9393, allocations: 0 / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.9393, allocations: 0 / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.9393, allocations: 4 kB / 1.214 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.9396, allocations: 207.8 kB / 1.214 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.9397, allocations: 85.02 kB / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.9397, allocations: 0 / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.632e-05/0.9398, allocations: 15.98 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.9399, allocations: 15.92 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.9399, allocations: 0 / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.898e-05/0.9399, allocations: 91.31 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.302e-06/0.9399, allocations: 0 / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002759/0.9402, allocations: 31.86 kB / 1.214 GB, free: 7.148 MB / 0.9356 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.0001708/0.9404, allocations: 103.2 kB / 1.214 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003866/0.9408, allocations: 171.5 kB / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9408, allocations: 0 / 1.215 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.9409, allocations: 35.97 kB / 1.215 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.9412, allocations: 8 kB / 1.215 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004225/0.9417, allocations: 188.1 kB / 1.215 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.9419, allocations: 0.6925 MB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.282e-05/0.942, allocations: 11.44 kB / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.942, allocations: 0 / 1.216 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of Templates: time 0.003187/0.9452, allocations: 1.202 MB / 1.217 GB, free: 4.68 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches