Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009708/0.0009707, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.001036/0.001036, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 223.2 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.815/2.815, allocations: 437.7 MB / 0.7117 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003899, allocations: 12 kB / 0.8722 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7696/0.7701, allocations: 153.8 MB / 1.022 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009196/0.771, allocations: 461.4 kB / 1.023 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.7725, allocations: 1.16 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.788e-05/0.7725, allocations: 0 / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.7726, allocations: 0 / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.646e-05/0.7727, allocations: 3.938 kB / 1.024 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005502/0.7732, allocations: 119.4 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000129/0.7734, allocations: 103.7 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.7735, allocations: 11.98 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.7736, allocations: 35.91 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.914e-05/0.7736, allocations: 35.89 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.7737, allocations: 4 kB / 1.024 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.265e-05/0.7738, allocations: 23.98 kB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.7738, allocations: 11.92 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.966e-05/0.7738, allocations: 41.64 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.774, allocations: 71.83 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.774, allocations: 0 / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.774, allocations: 0 / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.774, allocations: 0 / 1.024 GB, free: 14.13 MB / 0.7794 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.0005769/0.7746, allocations: 395 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.7746, allocations: 12.56 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.7747, allocations: 11.97 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.7748, allocations: 174.9 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.7749, allocations: 4 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.7749, allocations: 11.94 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.7751, allocations: 77.55 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.7751, allocations: 0 / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.7751, allocations: 0 / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.7752, allocations: 0 / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.7753, allocations: 55.95 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.7758, allocations: 324.8 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.776, allocations: 66.48 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.7761, allocations: 32.92 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.7761, allocations: 4 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.7763, allocations: 91.36 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.7764, allocations: 0 / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004278/0.7768, allocations: 157.5 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.7768, allocations: 55.41 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.652e-05/0.7769, allocations: 105.8 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.777, allocations: 33.7 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.777, allocations: 96.22 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.7771, allocations: 15.75 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/0.7771, allocations: 4 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.7772, allocations: 326.8 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.7774, allocations: 51.97 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.7775, allocations: 87.33 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.7777, allocations: 81.67 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7777, allocations: 0 / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004063/0.7781, allocations: 211.1 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.7782, allocations: 39.58 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.7782, allocations: 0 / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.7782, allocations: 0 / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.7783, allocations: 15.98 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.7783, allocations: 0 / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.7786, allocations: 48.48 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.7786, allocations: 11.98 kB / 1.027 GB, free: 11.32 MB / 0.7794 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.813e-05/0.7787, allocations: 125.7 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.7787, allocations: 7.906 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/0.779, allocations: 122 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.779, allocations: 3.938 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.779, allocations: 3.984 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.779, allocations: 4 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.7795, allocations: 374.8 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.7795, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.089e-05/0.7795, allocations: 12 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.7795, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.7796, allocations: 11.98 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.7796, allocations: 0 / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7796, allocations: 0 / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.7799, allocations: 231.5 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.7799, allocations: 81.02 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.78, allocations: 0 / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.7801, allocations: 11.98 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.7801, allocations: 11.98 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.7801, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.892e-05/0.7802, allocations: 87.28 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7802, allocations: 0 / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002604/0.7804, allocations: 23.98 kB / 1.028 GB, free: 10.12 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.7806, allocations: 111.2 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.781, allocations: 179.3 kB / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.781, allocations: 128 / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.7811, allocations: 47.97 kB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.7814, allocations: 13.09 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.7817, allocations: 192.5 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.782, allocations: 0.6809 MB / 1.029 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.109e-05/0.782, allocations: 4.469 kB / 1.029 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.272e-05/0.7821, allocations: 15.42 kB / 1.029 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7821, allocations: 0 / 1.029 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of Templates: time 0.004176/0.7862, allocations: 1.226 MB / 1.03 GB, free: 7.613 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches