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.001901/0.001901, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.00222/0.00222, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.318/1.318, 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 11.0.1-master/package.mo): time 2.471/2.471, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 67.89 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7253/0.7266, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001856/0.7285, allocations: 0.7298 MB / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.73, allocations: 1.186 MB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.442e-05/0.73, allocations: 4 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.518e-05/0.7301, allocations: 7.922 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.621e-05/0.7302, allocations: 15.92 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.7307, allocations: 138.9 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.7309, allocations: 123.8 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.672e-05/0.731, allocations: 15.98 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.352e-05/0.7311, allocations: 43.91 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.779e-05/0.7312, allocations: 47.81 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.7313, allocations: 8 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.946e-05/0.7313, allocations: 23.98 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.7314, allocations: 15.92 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.7314, allocations: 47.83 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.7316, allocations: 107.7 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.7316, allocations: 4 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.026e-06/0.7317, allocations: 0 / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.7317, allocations: 3.938 kB / 1.211 GB, free: 11.16 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.0005678/0.7322, allocations: 406.8 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.7323, allocations: 8.031 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/0.7323, allocations: 8.844 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.7325, allocations: 180.2 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.7325, allocations: 4.375 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.7325, allocations: 8.375 kB / 1.211 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.7327, allocations: 66.2 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.7327, allocations: 192 / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.7328, allocations: 11.88 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.7328, allocations: 0 / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.7329, allocations: 39.95 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.7334, allocations: 320.8 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.7336, allocations: 50.55 kB / 1.212 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.765e-05/0.7337, allocations: 32.88 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.7337, allocations: 0 / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.7339, allocations: 87.36 kB / 1.212 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.7339, allocations: 0 / 1.212 GB, free: 9.797 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004114/0.7343, allocations: 141.6 kB / 1.212 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.7344, allocations: 55.34 kB / 1.212 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.7345, allocations: 121.8 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.7345, allocations: 29.7 kB / 1.212 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.7346, allocations: 88.05 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.253e-05/0.7346, allocations: 24.11 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.609e-05/0.7347, allocations: 37.7 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.7348, allocations: 318.8 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.7349, allocations: 47.97 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.7351, allocations: 87.27 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.7354, allocations: 129 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.7354, allocations: 0 / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004268/0.7358, allocations: 203.2 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.7358, allocations: 41.62 kB / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.7359, allocations: 320 / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.7359, allocations: 0 / 1.213 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.638e-05/0.736, allocations: 23.92 kB / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.736, allocations: 0 / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.7362, allocations: 36.03 kB / 1.213 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.7362, allocations: 11.97 kB / 1.213 GB, free: 8.328 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 8.897e-05/0.7363, allocations: 121.8 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.499e-05/0.7363, allocations: 7.906 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.7366, allocations: 117.9 kB / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.7366, allocations: 0 / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7366, allocations: 0 / 1.214 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.7366, allocations: 4 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003813/0.737, allocations: 358.5 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.737, allocations: 0 / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.7371, allocations: 15.92 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.7371, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.7371, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.7371, allocations: 0 / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.7371, allocations: 4 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.7374, allocations: 203.4 kB / 1.214 GB, free: 7.422 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.836e-05/0.7375, allocations: 85.02 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.7375, allocations: 4 kB / 1.214 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.404e-05/0.7376, allocations: 7.984 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.7376, allocations: 11.92 kB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.7376, allocations: 0 / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.7377, allocations: 91.28 kB / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7377, allocations: 384 / 1.214 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002489/0.7379, allocations: 31.92 kB / 1.214 GB, free: 7.176 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.000137/0.7381, allocations: 107.1 kB / 1.214 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.7385, allocations: 167.3 kB / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7385, allocations: 128 / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.7386, allocations: 43.97 kB / 1.215 GB, free: 6.844 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.7389, allocations: 8 kB / 1.215 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003363/0.7392, allocations: 192.1 kB / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.7394, allocations: 0.6846 MB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.7395, allocations: 15.44 kB / 1.216 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.7395, allocations: 0 / 1.216 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of Templates: time 0.002615/0.7421, allocations: 1.207 MB / 1.217 GB, free: 4.703 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