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.0008512/0.0008513, allocations: 86.72 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.0009529/0.000953, 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.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.418 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.496/2.496, allocations: 390.9 MB / 0.666 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003998/0.0004001, allocations: 8 kB / 0.8154 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8304/0.8308, allocations: 142.4 MB / 0.9544 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001/0.8318, allocations: 444 kB / 0.9549 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.8333, allocations: 1.165 MB / 0.956 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.849e-05/0.8333, allocations: 0 / 0.956 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.837e-05/0.8334, allocations: 3.984 kB / 0.956 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.8334, allocations: 5.281 kB / 0.956 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.834, allocations: 126.8 kB / 0.9561 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000128/0.8341, allocations: 95.73 kB / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.419e-05/0.8342, allocations: 9.781 kB / 0.9562 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.335e-05/0.8343, allocations: 40.41 kB / 0.9563 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.564e-05/0.8344, allocations: 37.47 kB / 0.9563 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.8344, allocations: 5.969 kB / 0.9563 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.006e-05/0.8345, allocations: 14.67 kB / 0.9563 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.8345, allocations: 15.02 kB / 0.9563 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.027e-05/0.8346, allocations: 37.55 kB / 0.9564 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.8347, allocations: 72.67 kB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.8347, allocations: 0 / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8347, allocations: 1.156 kB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.8347, allocations: 3.938 kB / 0.9565 GB, free: 6.086 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.0005287/0.8352, allocations: 397.9 kB / 0.9568 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.8353, allocations: 12.84 kB / 0.9568 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.8354, allocations: 9.297 kB / 0.9569 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.552e-05/0.8354, allocations: 169.7 kB / 0.957 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.8355, allocations: 3.75 kB / 0.957 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.629e-05/0.8355, allocations: 14.38 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.8357, allocations: 72.12 kB / 0.9571 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.8358, allocations: 0 / 0.9571 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.8358, allocations: 1.125 kB / 0.9571 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.8358, allocations: 5.156 kB / 0.9571 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.836, allocations: 51.62 kB / 0.9572 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004354/0.8364, allocations: 331.8 kB / 0.9575 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.8366, allocations: 58.52 kB / 0.9575 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.017e-05/0.8367, allocations: 31.16 kB / 0.9576 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.8367, allocations: 8.984 kB / 0.9576 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.8369, allocations: 95.34 kB / 0.9577 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 3.236e-06/0.837, allocations: 3.984 kB / 0.9577 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004232/0.8374, allocations: 158.6 kB / 0.9578 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.8374, allocations: 53.91 kB / 0.9579 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.763e-05/0.8375, allocations: 111.9 kB / 0.958 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.8375, allocations: 32.92 kB / 0.958 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.8376, allocations: 95.41 kB / 0.9581 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.8376, allocations: 14.16 kB / 0.9581 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.8376, allocations: 2.062 kB / 0.9581 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.464e-05/0.8377, allocations: 316.9 kB / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.8378, allocations: 55.2 kB / 0.9585 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.838, allocations: 85.23 kB / 0.9585 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.8381, allocations: 81.11 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.8381, allocations: 1.062 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003739/0.8385, allocations: 207.7 kB / 0.9588 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.8386, allocations: 41.12 kB / 0.9589 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.8386, allocations: 1.438 kB / 0.9589 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.8386, allocations: 1.531 kB / 0.9589 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.568e-05/0.8387, allocations: 18.67 kB / 0.9589 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.8387, allocations: 1.625 kB / 0.9589 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.8389, allocations: 54.95 kB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.839, allocations: 6.344 kB / 0.9589 GB, free: 3.824 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,$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 7.551e-05/0.839, allocations: 132 kB / 0.9591 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.22e-05/0.8391, allocations: 2.938 kB / 0.9591 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.8393, allocations: 127.1 kB / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.8394, allocations: 1.812 kB / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.8394, allocations: 4 kB / 0.9592 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.8394, allocations: 0 / 0.9592 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.8397, allocations: 370.9 kB / 0.9596 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8397, allocations: 0 / 0.9596 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-05/0.8398, allocations: 14.86 kB / 0.9596 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.8398, allocations: 3.953 kB / 0.9596 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.8398, allocations: 1.375 kB / 0.9596 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.8398, allocations: 1.375 kB / 0.9596 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8398, allocations: 3.984 kB / 0.9596 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.8401, allocations: 219.8 kB / 0.9598 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.8401, allocations: 83.77 kB / 0.9599 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.8401, allocations: 3.953 kB / 0.9599 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.8402, allocations: 14.86 kB / 0.9599 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.8403, allocations: 2.75 kB / 0.9599 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.8403, allocations: 2.75 kB / 0.9599 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.124e-05/0.8403, allocations: 94.14 kB / 0.96 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8403, allocations: 0 / 0.96 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002562/0.8406, allocations: 23.25 kB / 0.96 GB, free: 2.867 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 (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.0001355/0.8407, allocations: 106.5 kB / 0.9601 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003511/0.8411, allocations: 184.1 kB / 0.9603 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8411, allocations: 0 / 0.9603 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.8412, allocations: 38.05 kB / 0.9603 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.8415, allocations: 16.41 kB / 0.9603 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.8418, allocations: 178.3 kB / 0.9605 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.8419, allocations: 0.6825 MB / 0.9612 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.124e-05/0.842, allocations: 4.312 kB / 0.9612 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.351e-05/0.842, allocations: 14.17 kB / 0.9612 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.842, allocations: 0 / 0.9612 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of Templates: time 0.003632/0.8457, allocations: 1.234 MB / 0.9624 GB, free: 1.129 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