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.00237/0.00237, allocations: 81.5 kB / 19.44 MB, free: 344 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.002006/0.002006, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.563/1.563, allocations: 177.1 MB / 203.1 MB, free: 5.621 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.497/3.497, allocations: 429.5 MB / 0.6729 GB, free: 4.008 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 1.342e-06/1.342e-06, allocations: 0 / 0.8774 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.081e-05/3.215e-05, allocations: 2.844 kB / 0.8774 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001932/0.001965, allocations: 0.7358 MB / 0.8781 GB, free: 5.965 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001967/0.003931, allocations: 1.213 MB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-05/0.003987, allocations: 224 / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.55e-05/0.004012, allocations: 3.938 kB / 0.8793 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.311e-05/0.004095, allocations: 20.34 kB / 0.8794 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.004566, allocations: 149.3 kB / 0.8795 GB, free: 4.574 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.00476, allocations: 115.8 kB / 0.8796 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.271e-05/0.004833, allocations: 4 kB / 0.8796 GB, free: 4.457 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.004976, allocations: 69.22 kB / 0.8797 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.005077, allocations: 43.86 kB / 0.8797 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.005108, allocations: 8 kB / 0.8797 GB, free: 4.34 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.737e-05/0.005186, allocations: 31.92 kB / 0.8798 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.005207, allocations: 9.094 kB / 0.8798 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.005274, allocations: 39.89 kB / 0.8798 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.005491, allocations: 131.7 kB / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.005493, allocations: 0.6562 kB / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.51e-07/0.005494, allocations: 0 / 0.8799 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.995e-06/0.005497, allocations: 1.594 kB / 0.8799 GB, free: 4.133 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.0006255/0.006122, allocations: 429.8 kB / 0.8803 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.006155, allocations: 15.97 kB / 0.8804 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.006267, allocations: 19.39 kB / 0.8804 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.006382, allocations: 108.6 kB / 0.8805 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.006403, allocations: 12.36 kB / 0.8805 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.006421, allocations: 4.375 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.006588, allocations: 62.17 kB / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.006598, allocations: 192 / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.006606, allocations: 384 / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.006612, allocations: 6.344 kB / 0.8806 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.006745, allocations: 31.91 kB / 0.8806 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005265/0.007272, allocations: 307.7 kB / 0.8809 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.007424, allocations: 55.7 kB / 0.8809 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.531e-05/0.007499, allocations: 28.27 kB / 0.881 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.007519, allocations: 0 / 0.881 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.007703, allocations: 94.06 kB / 0.8811 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 3.486e-06/0.007706, allocations: 3.984 kB / 0.8811 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003847/0.008091, allocations: 125.5 kB / 0.8812 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.008142, allocations: 59.41 kB / 0.8812 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000417/0.008559, allocations: 185.8 kB / 0.8814 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.00859, allocations: 29.7 kB / 0.8814 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.008694, allocations: 138.8 kB / 0.8816 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.008715, allocations: 11.91 kB / 0.8816 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.008813, allocations: 47.34 kB / 0.8816 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002811/0.009094, allocations: 0.4923 MB / 0.8821 GB, free: 1.699 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.009261, allocations: 81.67 kB / 0.8822 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.009462, allocations: 128.4 kB / 0.8823 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.009708, allocations: 132.4 kB / 0.8824 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.00971, allocations: 4 kB / 0.8824 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004717/0.01018, allocations: 244.8 kB / 0.8827 GB, free: 1.051 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.928e-05/0.01022, allocations: 33.7 kB / 0.8827 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.01023, allocations: 4 kB / 0.8827 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01024, allocations: 8.062 kB / 0.8827 GB, free: 1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.29e-05/0.01032, allocations: 11.98 kB / 0.8827 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.01033, allocations: 7.938 kB / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.01049, allocations: 19.97 kB / 0.8828 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.01051, allocations: 8 kB / 0.8828 GB, free: 0.9531 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.0001437/0.01065, allocations: 175.6 kB / 0.8829 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.409e-05/0.01068, allocations: 15.89 kB / 0.8829 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002607/0.01094, allocations: 98.09 kB / 0.883 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.01094, allocations: 7.984 kB / 0.883 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.01095, allocations: 4 kB / 0.8831 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01095, allocations: 0 / 0.8831 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.01139, allocations: 353.3 kB / 0.8834 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.01139, allocations: 0 / 0.8834 GB, free: 260 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.707e-05/0.01143, allocations: 4 kB / 0.8834 GB, free: 256 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.01144, allocations: 4 kB / 0.8834 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.01145, allocations: 0 / 0.8834 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.01145, allocations: 0 / 0.8834 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.01145, allocations: 4.453 kB / 0.8834 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003606/0.01181, allocations: 255.8 kB / 0.8836 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-06/0.01182, allocations: 0 / 0.8836 GB, free: 15.97 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.01184, allocations: 7.984 kB / 0.8837 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.956e-05/0.01191, allocations: 4 kB / 0.8837 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/0.01195, allocations: 7.984 kB / 0.8837 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.01196, allocations: 7.938 kB / 0.8837 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.582e-05/0.01206, allocations: 131.2 kB / 0.8838 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01206, allocations: 4 kB / 0.8838 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002384/0.0123, allocations: 20 kB / 0.8838 GB, free: 15.79 MB / 0.8542 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.0001552/0.01245, allocations: 103.2 kB / 0.8839 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000409/0.01286, allocations: 208.7 kB / 0.8841 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01286, allocations: 0 / 0.8841 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.01297, allocations: 39.66 kB / 0.8842 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.01323, allocations: 15.94 kB / 0.8842 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.01363, allocations: 169.9 kB / 0.8843 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.804e-05/0.01371, allocations: 71.47 kB / 0.8844 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.958e-05/0.01373, allocations: 4 kB / 0.8844 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.01376, allocations: 12.5 kB / 0.8844 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of SimCode: time 4.31e-07/0.01376, allocations: 3.938 kB / 0.8844 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of Templates: time 0.004926/0.01869, allocations: 1.537 MB / 0.8859 GB, free: 13.6 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=240 -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","/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.68886765697971]