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.00128/0.00128, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001509/0.001509, allocations: 188 kB / 16.25 MB, free: 6.625 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.647/1.647, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.509/2.509, allocations: 390.2 MB / 0.6643 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001347, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7995/0.8009, allocations: 140.4 MB / 0.9491 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002415/0.8033, allocations: 0.7859 MB / 0.9499 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001819/0.8052, allocations: 1.185 MB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.047e-05/0.8053, allocations: 5.312 kB / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.707e-05/0.8053, allocations: 0 / 0.951 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.8054, allocations: 9.312 kB / 0.951 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005616/0.806, allocations: 122.4 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.8062, allocations: 121.4 kB / 0.9513 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.8063, allocations: 17.48 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.442e-05/0.8064, allocations: 48.53 kB / 0.9513 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.884e-05/0.8065, allocations: 34.89 kB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.806e-05/0.8065, allocations: 10.75 kB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.279e-05/0.8066, allocations: 27.89 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.8066, allocations: 15.05 kB / 0.9514 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.83e-05/0.8067, allocations: 47.61 kB / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.8069, allocations: 100.4 kB / 0.9516 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.8069, allocations: 4 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.445e-06/0.8069, allocations: 1.562 kB / 0.9516 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.8069, allocations: 0 / 0.9516 GB, free: 7.301 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.0006368/0.8076, allocations: 410.3 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.8076, allocations: 8.969 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.8077, allocations: 6.406 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.862e-05/0.8078, allocations: 175 kB / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.8078, allocations: 11.22 kB / 0.9522 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.8078, allocations: 10.03 kB / 0.9522 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.8081, allocations: 65.06 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.8081, allocations: 192 / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.8081, allocations: 5.219 kB / 0.9522 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.8081, allocations: 1.344 kB / 0.9522 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.8083, allocations: 50.28 kB / 0.9523 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005023/0.8088, allocations: 325.9 kB / 0.9526 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.809, allocations: 50.36 kB / 0.9526 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.551e-05/0.8091, allocations: 26.69 kB / 0.9527 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.8091, allocations: 0 / 0.9527 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.8094, allocations: 92.3 kB / 0.9528 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.675e-06/0.8094, allocations: 0 / 0.9528 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004465/0.8099, allocations: 143.7 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.8099, allocations: 54.31 kB / 0.9529 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.241e-05/0.81, allocations: 112.4 kB / 0.9531 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.81, allocations: 36.33 kB / 0.9531 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.8101, allocations: 87.73 kB / 0.9532 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.8101, allocations: 22.27 kB / 0.9532 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/0.8102, allocations: 36.2 kB / 0.9532 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.8103, allocations: 324 kB / 0.9535 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.8104, allocations: 47 kB / 0.9536 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.8106, allocations: 76.27 kB / 0.9537 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.8108, allocations: 128.4 kB / 0.9538 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.8108, allocations: 0 / 0.9538 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003898/0.8112, allocations: 199.1 kB / 0.954 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.8113, allocations: 41.62 kB / 0.954 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.8113, allocations: 3.984 kB / 0.954 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.8113, allocations: 2.719 kB / 0.954 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.63e-05/0.8114, allocations: 16.55 kB / 0.954 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.8114, allocations: 1.531 kB / 0.954 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.8117, allocations: 31.27 kB / 0.9541 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.251e-05/0.8117, allocations: 10.5 kB / 0.9541 GB, free: 4.973 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.603e-05/0.8118, allocations: 122.1 kB / 0.9542 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.8118, allocations: 9.375 kB / 0.9542 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.8121, allocations: 114.8 kB / 0.9543 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.8121, allocations: 1.469 kB / 0.9543 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.8121, allocations: 0 / 0.9543 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.8121, allocations: 1.469 kB / 0.9543 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.8125, allocations: 361.2 kB / 0.9546 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.8125, allocations: 5.031 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.066e-05/0.8126, allocations: 10.2 kB / 0.9547 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.8126, allocations: 1 kB / 0.9547 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.8126, allocations: 5.125 kB / 0.9547 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.8126, allocations: 480 / 0.9547 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8126, allocations: 5.031 kB / 0.9547 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.8129, allocations: 214.4 kB / 0.9549 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.292e-05/0.8129, allocations: 79.39 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.8129, allocations: 5.141 kB / 0.955 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-05/0.813, allocations: 7.781 kB / 0.955 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.8131, allocations: 14.36 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.8131, allocations: 6.625 kB / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.387e-05/0.8131, allocations: 89.73 kB / 0.9551 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8131, allocations: 0 / 0.9551 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002525/0.8134, allocations: 23.97 kB / 0.9551 GB, free: 4.016 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.000146/0.8135, allocations: 104.2 kB / 0.9552 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003699/0.8139, allocations: 172.4 kB / 0.9554 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8139, allocations: 4.125 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.8141, allocations: 42.84 kB / 0.9554 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.8143, allocations: 13.64 kB / 0.9554 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003789/0.8147, allocations: 162.2 kB / 0.9556 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.815, allocations: 0.6918 MB / 0.9562 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.107e-05/0.815, allocations: 7.422 kB / 0.9563 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.815, allocations: 11.16 kB / 0.9563 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.815, allocations: 0 / 0.9563 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of Templates: time 0.004499/0.8195, allocations: 1.333 MB / 0.9576 GB, free: 2.223 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