Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 177 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.04/1.04, allocations: 177.1 MB / 203.8 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.516/2.516, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 0 / 0.8386 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.822e-05, allocations: 6.312 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002823/0.002851, allocations: 0.7718 MB / 0.8394 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001941/0.004792, allocations: 1.244 MB / 0.8406 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.517e-05/0.004857, allocations: 4 kB / 0.8406 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.423e-05/0.004891, allocations: 7.922 kB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 9.694e-05/0.004988, allocations: 15.86 kB / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005745/0.005563, allocations: 143.5 kB / 0.8407 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.005779, allocations: 115.8 kB / 0.8409 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.75e-05/0.005876, allocations: 19.91 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.006033, allocations: 59.95 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.006138, allocations: 35.88 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.406e-05/0.006173, allocations: 15.94 kB / 0.841 GB, free: 11.75 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 9.707e-05/0.00627, allocations: 27.98 kB / 0.841 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.18e-05/0.006291, allocations: 4 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.006353, allocations: 39.89 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.006551, allocations: 107.7 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.006555, allocations: 0 / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.613e-06/0.006556, allocations: 0 / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.006561, allocations: 0 / 0.8411 GB, free: 11.57 MB / 0.8073 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.0004953/0.007056, allocations: 306.4 kB / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.0071, allocations: 8.031 kB / 0.8414 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.007254, allocations: 16.86 kB / 0.8415 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.007375, allocations: 113.7 kB / 0.8416 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.007401, allocations: 4.375 kB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.007427, allocations: 12.38 kB / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.007568, allocations: 62.94 kB / 0.8417 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.007575, allocations: 192 / 0.8417 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.007582, allocations: 384 / 0.8417 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.007588, allocations: 384 / 0.8417 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.052e-05/0.007618, allocations: 23.84 kB / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002864/0.007904, allocations: 176.2 kB / 0.8418 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.93e-05/0.007964, allocations: 30.56 kB / 0.8419 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.393e-05/0.007978, allocations: 8.859 kB / 0.8419 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.007991, allocations: 0 / 0.8419 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.001e-05/0.008081, allocations: 79.42 kB / 0.842 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.008083, allocations: 4 kB / 0.842 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001246/0.008207, allocations: 65.61 kB / 0.842 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.008251, allocations: 55.39 kB / 0.8421 GB, free: 10.5 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.285e-05/0.008324, allocations: 118.7 kB / 0.8422 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.008344, allocations: 29.7 kB / 0.8422 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.993e-05/0.008384, allocations: 84.14 kB / 0.8423 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.008406, allocations: 27.77 kB / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.008454, allocations: 33.69 kB / 0.8424 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0003495/0.008804, allocations: 314.8 kB / 0.8427 GB, free: 9.867 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.642e-05/0.00886, allocations: 57.62 kB / 0.8427 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.06e-05/0.008921, allocations: 85.03 kB / 0.8428 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.738e-05/0.008998, allocations: 89.05 kB / 0.8429 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.009001, allocations: 3.984 kB / 0.8429 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001395/0.00914, allocations: 157 kB / 0.843 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.009179, allocations: 37.64 kB / 0.8431 GB, free: 9.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.009185, allocations: 4 kB / 0.8431 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.0092, allocations: 96 / 0.8431 GB, free: 9.375 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.47e-05/0.009274, allocations: 19.98 kB / 0.8431 GB, free: 9.355 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.009279, allocations: 4 kB / 0.8431 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.978e-05/0.009359, allocations: 27.91 kB / 0.8431 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.009375, allocations: 11.98 kB / 0.8431 GB, free: 9.312 MB / 0.8073 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 6.79e-05/0.009443, allocations: 113.8 kB / 0.8432 GB, free: 9.191 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.009457, allocations: 7.984 kB / 0.8432 GB, free: 9.184 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.296e-05/0.00955, allocations: 65.98 kB / 0.8433 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.009554, allocations: 4 kB / 0.8433 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.009556, allocations: 8 kB / 0.8433 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.009559, allocations: 0 / 0.8433 GB, free: 9.105 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.009705, allocations: 206.8 kB / 0.8435 GB, free: 8.879 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.009707, allocations: 0 / 0.8435 GB, free: 8.879 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.944e-05/0.009746, allocations: 7.984 kB / 0.8435 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.009749, allocations: 3.938 kB / 0.8435 GB, free: 8.867 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.009755, allocations: 0 / 0.8435 GB, free: 8.867 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.009758, allocations: 4 kB / 0.8435 GB, free: 8.863 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.009759, allocations: 3.938 kB / 0.8435 GB, free: 8.859 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.973e-05/0.009849, allocations: 147.5 kB / 0.8437 GB, free: 8.699 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-06/0.009858, allocations: 7.953 kB / 0.8437 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.009874, allocations: 7.938 kB / 0.8437 GB, free: 8.684 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.065e-05/0.009915, allocations: 7.984 kB / 0.8437 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.009943, allocations: 0 / 0.8437 GB, free: 8.676 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.009949, allocations: 11.98 kB / 0.8437 GB, free: 8.664 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.602e-05/0.009965, allocations: 13.31 kB / 0.8437 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.009965, allocations: 0 / 0.8437 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001661/0.01013, allocations: 23.94 kB / 0.8437 GB, free: 8.625 MB / 0.8073 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.00013/0.01026, allocations: 100.5 kB / 0.8438 GB, free: 8.516 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.01042, allocations: 142 kB / 0.844 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.01042, allocations: 0 / 0.844 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.212e-05/0.01045, allocations: 29.31 kB / 0.844 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.01061, allocations: 11.98 kB / 0.844 GB, free: 8.312 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004011/0.01101, allocations: 156.7 kB / 0.8442 GB, free: 8.133 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.491e-05/0.01105, allocations: 59.34 kB / 0.8442 GB, free: 8.055 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.581e-05/0.01109, allocations: 8.062 kB / 0.8442 GB, free: 8.047 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.002e-05/0.01117, allocations: 67.34 kB / 0.8443 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of SimCode: time 8.52e-07/0.01117, allocations: 0 / 0.8443 GB, free: 7.98 MB / 0.8073 GB Notification: Performance of Templates: time 0.00332/0.01449, allocations: 1.612 MB / 0.8459 GB, free: 6.406 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.494788013864309]