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.008099/0.008099, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.001548/0.001548, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.55/1.55, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.084/3.084, allocations: 461.8 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 64.11 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4215/0.423, allocations: 157.4 MB / 1.208 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002787/0.4258, allocations: 0.7223 MB / 1.208 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002008/0.4278, allocations: 1.19 MB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.07e-05/0.428, allocations: 0 / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.047e-05/0.4281, allocations: 7.938 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.4282, allocations: 7.922 kB / 1.21 GB, free: 7.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007806/0.429, allocations: 145.7 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002598/0.4292, allocations: 115.8 kB / 1.21 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.4294, allocations: 19.98 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.4295, allocations: 47.89 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.4297, allocations: 47.81 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.4297, allocations: 16 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.395e-05/0.4298, allocations: 23.98 kB / 1.21 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.984e-05/0.4298, allocations: 11.97 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.867e-05/0.4299, allocations: 39.86 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.4302, allocations: 107.7 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4302, allocations: 3.938 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.235e-06/0.4302, allocations: 0 / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.4302, allocations: 0 / 1.21 GB, free: 7.098 MB / 0.9669 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.0007632/0.431, allocations: 416.9 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.431, allocations: 12.03 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.4311, allocations: 8.938 kB / 1.211 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.4313, allocations: 168.3 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.4313, allocations: 4.375 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.4313, allocations: 8.375 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.4316, allocations: 62.22 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.4316, allocations: 192 / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.4316, allocations: 3.938 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.4316, allocations: 4 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.4318, allocations: 47.89 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000605/0.4324, allocations: 328.7 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.4326, allocations: 46.56 kB / 1.211 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.4327, allocations: 32.92 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.4327, allocations: 0 / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.433, allocations: 99.25 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.813e-06/0.433, allocations: 0 / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004982/0.4335, allocations: 133.6 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.4336, allocations: 51.41 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.4337, allocations: 125.7 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.4337, allocations: 29.7 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.4338, allocations: 92.05 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.4338, allocations: 11.81 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/0.4339, allocations: 41.62 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.434, allocations: 318.8 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.4342, allocations: 55.95 kB / 1.212 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.4344, allocations: 71.41 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.4347, allocations: 137 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4347, allocations: 3.938 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004576/0.4351, allocations: 203.1 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.4352, allocations: 33.7 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4352, allocations: 0 / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.4352, allocations: 4 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.4353, allocations: 15.92 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4354, allocations: 4.062 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.4356, allocations: 35.95 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.4356, allocations: 8 kB / 1.213 GB, free: 4.258 MB / 0.9669 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.0001012/0.4357, allocations: 125.7 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.4357, allocations: 7.906 kB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/0.436, allocations: 114 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4361, allocations: 0 / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4361, allocations: 480 / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.4361, allocations: 4.094 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004197/0.4365, allocations: 358.5 kB / 1.213 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4365, allocations: 7.984 kB / 1.213 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.4366, allocations: 7.984 kB / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.4366, allocations: 3.938 kB / 1.213 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.4366, allocations: 8 kB / 1.213 GB, free: 3.559 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.4366, allocations: 3.984 kB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4366, allocations: 0 / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.437, allocations: 211.3 kB / 1.213 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.437, allocations: 77.11 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.437, allocations: 0 / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.4371, allocations: 19.98 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.4372, allocations: 7.938 kB / 1.214 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.4372, allocations: 4 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.954e-05/0.4372, allocations: 91.27 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4373, allocations: 0 / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000272/0.4375, allocations: 20 kB / 1.214 GB, free: 3.098 MB / 0.9669 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.0001643/0.4377, allocations: 103.2 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003951/0.4381, allocations: 175.2 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4381, allocations: 0 / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.4382, allocations: 39.92 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.4385, allocations: 15.92 kB / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003988/0.4389, allocations: 159.3 kB / 1.214 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.4392, allocations: 0.6905 MB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.4393, allocations: 4 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.4393, allocations: 11.44 kB / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.4393, allocations: 0 / 1.215 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of Templates: time 0.004169/0.4435, allocations: 1.439 MB / 1.216 GB, free: 424 kB / 0.9669 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