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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001307/0.001307, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 0.8119 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8026/0.8039, allocations: 140.3 MB / 0.9489 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002325/0.8063, allocations: 0.797 MB / 0.9497 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.8077, allocations: 1.201 MB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.421e-05/0.8078, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.579e-05/0.8078, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.588e-05/0.8079, allocations: 9.297 kB / 0.9509 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004319/0.8084, allocations: 121.7 kB / 0.951 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.8085, allocations: 110 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.8086, allocations: 13.41 kB / 0.9511 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.645e-05/0.8087, allocations: 40.12 kB / 0.9511 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.202e-05/0.8088, allocations: 38.5 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.8088, allocations: 6.344 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.793e-05/0.8089, allocations: 20.39 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.8089, allocations: 18.23 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.807e-05/0.809, allocations: 40.84 kB / 0.9513 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.8091, allocations: 99.77 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.8091, allocations: 0 / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8092, allocations: 1.406 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.8092, allocations: 4 kB / 0.9514 GB, free: 7.281 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.0005409/0.8097, allocations: 409.9 kB / 0.9518 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.8098, allocations: 9.656 kB / 0.9518 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.8098, allocations: 5.781 kB / 0.9518 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.327e-05/0.8099, allocations: 171 kB / 0.9519 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.8099, allocations: 4.562 kB / 0.9519 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.81, allocations: 9.891 kB / 0.952 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.8102, allocations: 64.23 kB / 0.952 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.8102, allocations: 4.172 kB / 0.952 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.8102, allocations: 5.375 kB / 0.952 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.8102, allocations: 9.125 kB / 0.952 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.8104, allocations: 43.14 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004757/0.8109, allocations: 328.9 kB / 0.9524 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.8111, allocations: 51.27 kB / 0.9524 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.8112, allocations: 30.16 kB / 0.9525 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.8112, allocations: 0 / 0.9525 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.8115, allocations: 87.58 kB / 0.9525 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.8115, allocations: 0 / 0.9525 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004671/0.8119, allocations: 137.4 kB / 0.9527 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.812, allocations: 56.58 kB / 0.9527 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.049e-05/0.8121, allocations: 117.1 kB / 0.9528 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.8121, allocations: 28.33 kB / 0.9529 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.8122, allocations: 96.48 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.8122, allocations: 22.7 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.929e-05/0.8123, allocations: 30.95 kB / 0.953 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.8123, allocations: 320.9 kB / 0.9533 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.8125, allocations: 50.39 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.8127, allocations: 80.67 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.8129, allocations: 128.5 kB / 0.9536 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.8129, allocations: 0 / 0.9536 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004035/0.8133, allocations: 198.8 kB / 0.9538 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.8134, allocations: 41.28 kB / 0.9538 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.8134, allocations: 5.219 kB / 0.9538 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.8134, allocations: 1.062 kB / 0.9538 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.731e-05/0.8135, allocations: 12.53 kB / 0.9538 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.8135, allocations: 6.234 kB / 0.9538 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.8138, allocations: 27.88 kB / 0.9538 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.8138, allocations: 14.3 kB / 0.9539 GB, free: 4.957 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 8.734e-05/0.8139, allocations: 130 kB / 0.954 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.8139, allocations: 7.125 kB / 0.954 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.8142, allocations: 114.1 kB / 0.9541 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.8142, allocations: 1.531 kB / 0.9541 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.8142, allocations: 3.938 kB / 0.9541 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.8142, allocations: 1.625 kB / 0.9541 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.8146, allocations: 365.8 kB / 0.9545 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.8146, allocations: 0 / 0.9545 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.862e-05/0.8146, allocations: 14.14 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.8147, allocations: 1.344 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.8147, allocations: 1.156 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.8147, allocations: 0 / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.8147, allocations: 0.875 kB / 0.9545 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.815, allocations: 210.3 kB / 0.9547 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.049e-05/0.815, allocations: 79.02 kB / 0.9547 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.815, allocations: 0.9375 kB / 0.9547 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.8151, allocations: 12.2 kB / 0.9548 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.8151, allocations: 10.92 kB / 0.9548 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.8152, allocations: 3.406 kB / 0.9548 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.172e-05/0.8152, allocations: 92.88 kB / 0.9549 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8152, allocations: 1.281 kB / 0.9549 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002527/0.8155, allocations: 26.61 kB / 0.9549 GB, free: 4 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.000156/0.8156, allocations: 112.1 kB / 0.955 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003632/0.816, allocations: 163.3 kB / 0.9552 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.816, allocations: 0 / 0.9552 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.8161, allocations: 46.06 kB / 0.9552 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.8164, allocations: 10.28 kB / 0.9552 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003434/0.8168, allocations: 167.6 kB / 0.9554 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/0.8169, allocations: 0.6919 MB / 0.956 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.194e-05/0.8169, allocations: 3.438 kB / 0.956 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.254e-05/0.817, allocations: 11.16 kB / 0.9561 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.817, allocations: 0 / 0.9561 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of Templates: time 0.003793/0.8208, allocations: 1.291 MB / 0.9573 GB, free: 2.23 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/jenkins/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