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.001987/0.001987, allocations: 88.7 kB / 19.44 MB, free: 324 kB / 13.93 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.00267/0.00267, allocations: 161.3 kB / 22.76 MB, free: 1.652 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.533/1.533, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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 3.348/3.348, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.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.565e-06/2.565e-06, allocations: 0 / 0.8776 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.344e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.48 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.003421/0.003454, allocations: 0.7309 MB / 0.8783 GB, free: 5.777 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.003327/0.006781, allocations: 1.218 MB / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.772e-05/0.006839, allocations: 0 / 0.8795 GB, free: 4.551 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.639e-05/0.006885, allocations: 9.047 kB / 0.8795 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.006992, allocations: 13.39 kB / 0.8795 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008721/0.007864, allocations: 144.6 kB / 0.8796 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003177/0.008181, allocations: 116.5 kB / 0.8797 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.008288, allocations: 8 kB / 0.8798 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.008496, allocations: 71.31 kB / 0.8798 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.008639, allocations: 35.94 kB / 0.8799 GB, free: 4.168 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.008686, allocations: 12 kB / 0.8799 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.008817, allocations: 31.97 kB / 0.8799 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.492e-05/0.008852, allocations: 7.938 kB / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.008977, allocations: 35.95 kB / 0.8799 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.009354, allocations: 135.6 kB / 0.8801 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.009357, allocations: 0 / 0.8801 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.032e-06/0.009358, allocations: 0 / 0.8801 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.009363, allocations: 0.5938 kB / 0.8801 GB, free: 3.949 MB / 0.8386 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.0009447/0.01031, allocations: 332.9 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.01037, allocations: 12.03 kB / 0.8804 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.01056, allocations: 16.89 kB / 0.8804 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.01074, allocations: 110.2 kB / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.01076, allocations: 1.906 kB / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.0108, allocations: 8.375 kB / 0.8805 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.01114, allocations: 70.2 kB / 0.8806 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.01115, allocations: 4.125 kB / 0.8806 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.01117, allocations: 5.453 kB / 0.8806 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.01117, allocations: 384 / 0.8806 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.01151, allocations: 48.52 kB / 0.8806 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007375/0.01225, allocations: 252.5 kB / 0.8809 GB, free: 3.012 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.01256, allocations: 46.55 kB / 0.8809 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.01276, allocations: 32.86 kB / 0.881 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.01279, allocations: 0 / 0.881 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.01321, allocations: 87.3 kB / 0.881 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.984e-06/0.01322, allocations: 3.938 kB / 0.8811 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0008482/0.01406, allocations: 149.6 kB / 0.8812 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.655e-05/0.01414, allocations: 55.34 kB / 0.8812 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.01431, allocations: 117.8 kB / 0.8814 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.841e-05/0.01437, allocations: 33.7 kB / 0.8814 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.0145, allocations: 92.09 kB / 0.8815 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.01453, allocations: 11.84 kB / 0.8815 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.01469, allocations: 41.69 kB / 0.8815 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002701/0.01496, allocations: 314.8 kB / 0.8818 GB, free: 1.969 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/0.0153, allocations: 81.66 kB / 0.8819 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003993/0.0157, allocations: 105.1 kB / 0.882 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.01626, allocations: 129 kB / 0.8821 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.01626, allocations: 0 / 0.8821 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000959/0.01722, allocations: 248.8 kB / 0.8824 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.231e-05/0.0173, allocations: 37.7 kB / 0.8824 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.0173, allocations: 4 kB / 0.8824 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.01733, allocations: 4 kB / 0.8824 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.0175, allocations: 11.98 kB / 0.8824 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.0175, allocations: 0 / 0.8824 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.01788, allocations: 31.95 kB / 0.8825 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.01792, allocations: 16.06 kB / 0.8825 GB, free: 1.246 MB / 0.8386 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 0.0001792/0.0181, allocations: 113.8 kB / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.01815, allocations: 15.88 kB / 0.8826 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005757/0.01872, allocations: 122.3 kB / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.01873, allocations: 0 / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.01873, allocations: 0 / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.01873, allocations: 0 / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00081/0.01954, allocations: 306.2 kB / 0.883 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.01955, allocations: 3.938 kB / 0.883 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.01966, allocations: 11.98 kB / 0.883 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.01967, allocations: 0 / 0.883 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.01968, allocations: 4 kB / 0.883 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.01969, allocations: 3.938 kB / 0.883 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01969, allocations: 0 / 0.883 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006551/0.02034, allocations: 211.4 kB / 0.8832 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.02037, allocations: 11.94 kB / 0.8832 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.02039, allocations: 4 kB / 0.8832 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.02057, allocations: 7.984 kB / 0.8833 GB, free: 384 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.02063, allocations: 7.984 kB / 0.8833 GB, free: 376 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.02064, allocations: 4 kB / 0.8833 GB, free: 372 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001175/0.02076, allocations: 95.2 kB / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/0.02076, allocations: 0 / 0.8834 GB, free: 276 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000476/0.02123, allocations: 20 kB / 0.8834 GB, free: 256 kB / 0.8386 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.0001618/0.0214, allocations: 99.25 kB / 0.8835 GB, free: 148 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004494/0.02185, allocations: 193.1 kB / 0.8837 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.02185, allocations: 0 / 0.8837 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.02197, allocations: 27.98 kB / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.02228, allocations: 20.02 kB / 0.8837 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.02268, allocations: 152.4 kB / 0.8838 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.505e-05/0.02276, allocations: 79.39 kB / 0.8839 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.294e-05/0.0228, allocations: 7.984 kB / 0.8839 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.02283, allocations: 16.5 kB / 0.8839 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of SimCode: time 4.01e-07/0.02283, allocations: 0 / 0.8839 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of Templates: time 0.005164/0.028, allocations: 1.54 MB / 0.8854 GB, free: 14.11 MB / 0.8542 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.594662197050638]