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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009649/0.0009649, allocations: 99.19 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 186.3 kB / 16.92 MB, free: 6.75 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.483/1.483, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004018, allocations: 12 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6772, allocations: 142.4 MB / 0.9557 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009094/0.6782, allocations: 467.2 kB / 0.9562 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.6796, allocations: 1.182 MB / 0.9573 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.101e-05/0.6796, allocations: 1.25 kB / 0.9573 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.65e-05/0.6797, allocations: 3.938 kB / 0.9573 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.988e-05/0.6797, allocations: 9.047 kB / 0.9573 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.6802, allocations: 123.4 kB / 0.9574 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.6803, allocations: 110.5 kB / 0.9576 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.965e-05/0.6804, allocations: 18.42 kB / 0.9576 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.599e-05/0.6805, allocations: 35.19 kB / 0.9576 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.056e-05/0.6806, allocations: 34.08 kB / 0.9576 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.6806, allocations: 6.062 kB / 0.9576 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.807e-05/0.6807, allocations: 22.88 kB / 0.9577 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.137e-05/0.6807, allocations: 11.12 kB / 0.9577 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.34e-05/0.6808, allocations: 57.64 kB / 0.9577 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.6809, allocations: 73.48 kB / 0.9578 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.6809, allocations: 0 / 0.9578 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6809, allocations: 4 kB / 0.9578 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.6809, allocations: 0.9688 kB / 0.9578 GB, free: 6.051 MB / 0.7169 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.0004927/0.6814, allocations: 393.5 kB / 0.9582 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.6815, allocations: 9.5 kB / 0.9582 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.6815, allocations: 13.62 kB / 0.9582 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.046e-05/0.6816, allocations: 183.3 kB / 0.9584 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.6816, allocations: 2.812 kB / 0.9584 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.6817, allocations: 11 kB / 0.9584 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.6819, allocations: 69.84 kB / 0.9585 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.6819, allocations: 192 / 0.9585 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.6819, allocations: 3.938 kB / 0.9585 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.6819, allocations: 1.094 kB / 0.9585 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.6821, allocations: 57.7 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.6825, allocations: 325.8 kB / 0.9588 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.6827, allocations: 58.83 kB / 0.9589 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.847e-05/0.6828, allocations: 36.05 kB / 0.9589 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.6828, allocations: 0 / 0.9589 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002199/0.683, allocations: 100.7 kB / 0.959 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.683, allocations: 0 / 0.959 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004378/0.6835, allocations: 154.9 kB / 0.9592 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.6835, allocations: 53.69 kB / 0.9592 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.832e-05/0.6836, allocations: 113.1 kB / 0.9593 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.6836, allocations: 28.23 kB / 0.9593 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/0.6837, allocations: 94.94 kB / 0.9594 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/0.6837, allocations: 18.75 kB / 0.9595 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.6837, allocations: 15.53 kB / 0.9595 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.882e-05/0.6838, allocations: 324.2 kB / 0.9598 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.6839, allocations: 54.94 kB / 0.9598 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.6841, allocations: 85.39 kB / 0.9599 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.6844, allocations: 142.3 kB / 0.96 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.6844, allocations: 0 / 0.96 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003999/0.6848, allocations: 212.8 kB / 0.9603 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.6848, allocations: 36.86 kB / 0.9603 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.6848, allocations: 1.781 kB / 0.9603 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.6848, allocations: 2.25 kB / 0.9603 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.826e-05/0.685, allocations: 17.95 kB / 0.9603 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.685, allocations: 1.375 kB / 0.9603 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.6852, allocations: 48.95 kB / 0.9604 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.6852, allocations: 5.5 kB / 0.9604 GB, free: 3.73 MB / 0.7169 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 7.721e-05/0.6853, allocations: 135.1 kB / 0.9605 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.6853, allocations: 6.656 kB / 0.9605 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.6856, allocations: 121.1 kB / 0.9606 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.6857, allocations: 1.375 kB / 0.9606 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.6857, allocations: 4 kB / 0.9606 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6857, allocations: 0 / 0.9606 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000362/0.686, allocations: 376.4 kB / 0.961 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.6861, allocations: 0 / 0.961 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.067e-05/0.6861, allocations: 17.61 kB / 0.961 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.6861, allocations: 0 / 0.961 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.6861, allocations: 5.375 kB / 0.961 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.6862, allocations: 5.359 kB / 0.961 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.6862, allocations: 0 / 0.961 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.6864, allocations: 223.6 kB / 0.9612 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.296e-05/0.6865, allocations: 79.86 kB / 0.9613 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.6865, allocations: 1.375 kB / 0.9613 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-05/0.6866, allocations: 13.48 kB / 0.9613 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.6866, allocations: 6.688 kB / 0.9613 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.6866, allocations: 6.734 kB / 0.9613 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.502e-05/0.6867, allocations: 90.16 kB / 0.9614 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6867, allocations: 0 / 0.9614 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002533/0.6869, allocations: 19.25 kB / 0.9614 GB, free: 2.77 MB / 0.7169 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.0001311/0.6871, allocations: 106.5 kB / 0.9615 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003689/0.6875, allocations: 181.5 kB / 0.9617 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6875, allocations: 0 / 0.9617 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.6876, allocations: 42.58 kB / 0.9617 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.6879, allocations: 18.77 kB / 0.9618 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.6882, allocations: 204.7 kB / 0.962 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.6883, allocations: 0.6837 MB / 0.9626 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.6884, allocations: 15.5 kB / 0.9626 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.6884, allocations: 0 / 0.9626 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of Templates: time 0.002789/0.6912, allocations: 1.179 MB / 0.9638 GB, free: 1.031 MB / 0.7169 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/jenkins1/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