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.007598/0.007598, allocations: 103 kB / 15.73 MB, free: 6.035 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.00159/0.00159, allocations: 189.8 kB / 16.67 MB, free: 5.965 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.534/1.534, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.575/2.575, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 66.27 kB / 0.9508 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3399, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002334/0.3423, allocations: 0.7208 MB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3443, allocations: 1.196 MB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.3444, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.176e-05/0.3445, allocations: 3.938 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.05e-05/0.3446, allocations: 3.938 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007447/0.3454, allocations: 147 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.3456, allocations: 111.9 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3457, allocations: 19.98 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.3459, allocations: 55.83 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.346, allocations: 47.81 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.3461, allocations: 15.94 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.3462, allocations: 20 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.648e-05/0.3462, allocations: 15.97 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.221e-05/0.3463, allocations: 39.84 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.3466, allocations: 107.7 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.3466, allocations: 0 / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.346e-06/0.3466, allocations: 3.938 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.3466, allocations: 0 / 1.09 GB, free: 15 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.0008031/0.3474, allocations: 413 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.3475, allocations: 8.031 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.591e-05/0.3476, allocations: 12.84 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.3477, allocations: 172.3 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.3478, allocations: 4.375 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.3478, allocations: 8.375 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.348, allocations: 62.22 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.348, allocations: 192 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.3481, allocations: 11.94 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.3481, allocations: 0 / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.3482, allocations: 43.95 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006301/0.3489, allocations: 328.5 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.3491, allocations: 54.55 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3492, allocations: 24.94 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.3492, allocations: 3.984 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.3495, allocations: 87.38 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.844e-06/0.3495, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004594/0.35, allocations: 141.5 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.35, allocations: 51.41 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.536e-05/0.3501, allocations: 113.8 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3502, allocations: 30.08 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.169e-05/0.3503, allocations: 96.03 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.3503, allocations: 15.81 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.837e-05/0.3504, allocations: 29.7 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3505, allocations: 334.7 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3507, allocations: 43.97 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.3509, allocations: 79.33 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.3512, allocations: 129 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3512, allocations: 0 / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004761/0.3517, allocations: 207.2 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.385e-05/0.3517, allocations: 37.69 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3517, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.3518, allocations: 4 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.833e-05/0.3519, allocations: 16.05 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.3519, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.3521, allocations: 39.86 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.3521, allocations: 8 kB / 1.093 GB, free: 12.17 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 0.0001044/0.3522, allocations: 125.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.3522, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004117/0.3527, allocations: 114 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3527, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3527, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3527, allocations: 4 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.3532, allocations: 370.3 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.3532, allocations: 0 / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.269e-05/0.3532, allocations: 11.98 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3532, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3533, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3533, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3533, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.3536, allocations: 203.4 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.478e-05/0.3536, allocations: 81.02 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.3537, allocations: 11.98 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.55e-05/0.3537, allocations: 8 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.3538, allocations: 7.922 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.3538, allocations: 4 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.882e-05/0.3539, allocations: 95.3 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3539, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002586/0.3541, allocations: 20 kB / 1.094 GB, free: 11.02 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.0001625/0.3543, allocations: 103.2 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000389/0.3547, allocations: 171.2 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3547, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.3549, allocations: 44.45 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.3552, allocations: 16.03 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004827/0.3557, allocations: 162.4 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.356, allocations: 0.6846 MB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.041e-05/0.3561, allocations: 7.75 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.3561, allocations: 11.42 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of SimCode: time 2.9e-07/0.3561, allocations: 0 / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of Templates: time 0.005342/0.3615, allocations: 1.458 MB / 1.096 GB, free: 8.316 MB / 0.8575 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/jenkins/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