Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 105.4 kB / 16.41 MB, free: 6.488 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.001645/0.001645, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.322/2.322, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 67.89 kB / 0.9515 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9498/0.9513, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001779/0.9532, allocations: 0.7251 MB / 1.089 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.9545, allocations: 1.193 MB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.892e-05/0.9546, allocations: 0.9688 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.386e-05/0.9546, allocations: 5.062 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.768e-05/0.9547, allocations: 11.28 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.9552, allocations: 144 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.9554, allocations: 125.2 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.854e-05/0.9555, allocations: 13.39 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.9556, allocations: 48.19 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.9557, allocations: 46.42 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.9558, allocations: 9.844 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.323e-05/0.9558, allocations: 24.17 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.093e-05/0.9559, allocations: 13.53 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.9559, allocations: 43.02 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.9561, allocations: 109.3 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.9561, allocations: 1.25 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.303e-06/0.9562, allocations: 0 / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.9562, allocations: 0 / 1.091 GB, free: 3.945 MB / 0.8575 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.0005233/0.9567, allocations: 410.6 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.9567, allocations: 8.625 kB / 1.091 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.9568, allocations: 10.73 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.472e-05/0.9569, allocations: 172.3 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.9569, allocations: 4.953 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.9569, allocations: 6.188 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.9571, allocations: 69.02 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.9571, allocations: 4.125 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.9572, allocations: 5.453 kB / 1.092 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.9572, allocations: 0.7188 kB / 1.092 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.9574, allocations: 50.44 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004572/0.9578, allocations: 327 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.958, allocations: 48.73 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.843e-05/0.9581, allocations: 28.62 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.9581, allocations: 1.594 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.9584, allocations: 90.89 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.9584, allocations: 0 / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004326/0.9588, allocations: 134 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.9588, allocations: 57.77 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.626e-05/0.9589, allocations: 121.5 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.959, allocations: 29.03 kB / 1.093 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.203e-05/0.959, allocations: 92.25 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.959, allocations: 20.77 kB / 1.093 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.9591, allocations: 35.81 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.9592, allocations: 323.6 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.9593, allocations: 47.97 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.9595, allocations: 83.58 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.9598, allocations: 130.1 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.9598, allocations: 0.625 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004247/0.9602, allocations: 195.4 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.9603, allocations: 38.27 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.9603, allocations: 1.062 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.9603, allocations: 2.141 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.9604, allocations: 15.77 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.9604, allocations: 2.125 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.9606, allocations: 38.62 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.9607, allocations: 10.69 kB / 1.094 GB, free: 1.836 MB / 0.8575 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 7.768e-05/0.9608, allocations: 121.2 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.9608, allocations: 4.234 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002978/0.9611, allocations: 111.7 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.9611, allocations: 0.875 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.9611, allocations: 5.391 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.9611, allocations: 4.906 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003889/0.9615, allocations: 365.8 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.9615, allocations: 1.062 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.074e-05/0.9616, allocations: 8.938 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.9616, allocations: 1.094 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.9616, allocations: 1.219 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.9616, allocations: 1.469 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9616, allocations: 4.719 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.9619, allocations: 207.2 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.669e-05/0.962, allocations: 83.25 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.962, allocations: 6.047 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.919e-05/0.9621, allocations: 14.47 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.9621, allocations: 13.12 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-06/0.9621, allocations: 7 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.712e-05/0.9622, allocations: 88.92 kB / 1.095 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9622, allocations: 0.8438 kB / 1.095 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002707/0.9625, allocations: 19.31 kB / 1.095 GB, free: 0.9609 MB / 0.8575 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.0001489/0.9626, allocations: 105 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003882/0.963, allocations: 170.8 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.963, allocations: 0 / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.9632, allocations: 42.06 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.9635, allocations: 18.44 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000366/0.9638, allocations: 180 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.964, allocations: 0.6898 MB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.964, allocations: 11.03 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/0.9641, allocations: 0.7188 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.003631/0.9677, allocations: 1.21 MB / 1.097 GB, free: 15.78 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches