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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.009717/0.009717, allocations: 97.41 kB / 15.73 MB, free: 6.062 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.001838/0.001837, allocations: 192.9 kB / 16.67 MB, free: 5.969 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.561/1.561, allocations: 222.9 MB / 240.4 MB, free: 4.137 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.146/3.146, allocations: 472.6 MB / 0.7452 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.11 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4191, allocations: 159.9 MB / 1.226 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002486/0.4216, allocations: 0.7331 MB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.4234, allocations: 1.19 MB / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.256e-05/0.4235, allocations: 0 / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.841e-05/0.4236, allocations: 3.938 kB / 1.227 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.3e-05/0.4237, allocations: 15.86 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.4243, allocations: 142.8 kB / 1.228 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.4245, allocations: 115.8 kB / 1.228 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.4246, allocations: 15.98 kB / 1.228 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.4247, allocations: 43.91 kB / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.4249, allocations: 59.8 kB / 1.228 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.4249, allocations: 8 kB / 1.228 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.409e-05/0.425, allocations: 23.98 kB / 1.228 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.37e-05/0.425, allocations: 11.94 kB / 1.228 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.193e-05/0.4251, allocations: 43.83 kB / 1.228 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.4253, allocations: 111.7 kB / 1.228 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4253, allocations: 3.938 kB / 1.228 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4253, allocations: 0 / 1.228 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.4253, allocations: 0 / 1.228 GB, free: 6.719 MB / 0.9825 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.000698/0.4261, allocations: 409 kB / 1.228 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4261, allocations: 8.031 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.4262, allocations: 8.891 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.4263, allocations: 176.3 kB / 1.229 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.4263, allocations: 4.375 kB / 1.229 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.4264, allocations: 4.375 kB / 1.229 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.4266, allocations: 70.16 kB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.4266, allocations: 4.125 kB / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.4266, allocations: 3.938 kB / 1.229 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.4266, allocations: 8 kB / 1.229 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.4268, allocations: 39.95 kB / 1.229 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.4274, allocations: 328.7 kB / 1.229 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.4275, allocations: 50.5 kB / 1.229 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.953e-05/0.4276, allocations: 32.92 kB / 1.229 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.4277, allocations: 0 / 1.229 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.4279, allocations: 83.36 kB / 1.229 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.4279, allocations: 0 / 1.229 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004421/0.4284, allocations: 145.5 kB / 1.229 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.4284, allocations: 51.41 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.4286, allocations: 117.8 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.4286, allocations: 29.7 kB / 1.23 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.4287, allocations: 96.16 kB / 1.23 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.449e-05/0.4287, allocations: 15.84 kB / 1.23 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.467e-05/0.4288, allocations: 37.69 kB / 1.23 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4289, allocations: 318.8 kB / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4291, allocations: 55.95 kB / 1.23 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.4293, allocations: 71.41 kB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.4296, allocations: 137 kB / 1.23 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.4296, allocations: 3.938 kB / 1.23 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004395/0.43, allocations: 203.1 kB / 1.23 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/0.4301, allocations: 37.7 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.4301, allocations: 0 / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.4301, allocations: 4 kB / 1.23 GB, free: 3.941 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.4303, allocations: 11.98 kB / 1.23 GB, free: 3.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4303, allocations: 4.062 kB / 1.23 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001968/0.4305, allocations: 31.95 kB / 1.231 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.4305, allocations: 8 kB / 1.231 GB, free: 3.887 MB / 0.9825 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.0001021/0.4306, allocations: 126.8 kB / 1.231 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.4306, allocations: 7.953 kB / 1.231 GB, free: 3.746 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.431, allocations: 114 kB / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.431, allocations: 0 / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.431, allocations: 0 / 1.231 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.431, allocations: 3.938 kB / 1.231 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004354/0.4314, allocations: 362.4 kB / 1.231 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4314, allocations: 0 / 1.231 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.364e-05/0.4315, allocations: 15.98 kB / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4315, allocations: 4 kB / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4315, allocations: 4 kB / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4315, allocations: 0 / 1.231 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.4316, allocations: 3.984 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003339/0.4319, allocations: 211.4 kB / 1.231 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.432, allocations: 81.06 kB / 1.231 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.432, allocations: 0 / 1.231 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.4321, allocations: 11.98 kB / 1.231 GB, free: 2.852 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/0.4322, allocations: 11.94 kB / 1.231 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.4322, allocations: 4 kB / 1.231 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.544e-05/0.4323, allocations: 91.2 kB / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4323, allocations: 0 / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002694/0.4325, allocations: 23.94 kB / 1.232 GB, free: 2.723 MB / 0.9825 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.0001737/0.4327, allocations: 107.2 kB / 1.232 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004215/0.4332, allocations: 171.3 kB / 1.232 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4332, allocations: 0 / 1.232 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.4333, allocations: 35.98 kB / 1.232 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.4336, allocations: 15.92 kB / 1.232 GB, free: 2.379 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004025/0.434, allocations: 170.5 kB / 1.232 GB, free: 2.188 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.4343, allocations: 0.6923 MB / 1.233 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.367e-05/0.4343, allocations: 4.281 kB / 1.233 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.4344, allocations: 11.44 kB / 1.233 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.4344, allocations: 0 / 1.233 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of Templates: time 0.00442/0.4388, allocations: 1.399 MB / 1.234 GB, free: 68 kB / 0.9825 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/jenkins/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