Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002324/0.002324, allocations: 83.69 kB / 20.23 MB, free: 4.188 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.002011/0.002011, allocations: 157.3 kB / 23.55 MB, free: 0.875 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.564/1.564, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.937/2.937, allocations: 359 MB / 0.6048 GB, free: 10.92 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.71e-05/2.914e-05, allocations: 5.391 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002694/0.002723, allocations: 0.7121 MB / 0.7871 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002688/0.005411, allocations: 1.229 MB / 0.7883 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.71e-05/0.005458, allocations: 0 / 0.7883 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/0.005485, allocations: 4.844 kB / 0.7883 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.521e-05/0.00557, allocations: 11.88 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.006187, allocations: 141.2 kB / 0.7884 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.006431, allocations: 115.8 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.861e-05/0.00652, allocations: 16.53 kB / 0.7885 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.006687, allocations: 67.89 kB / 0.7886 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.006826, allocations: 36.56 kB / 0.7886 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.006865, allocations: 8.906 kB / 0.7886 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.006973, allocations: 31.92 kB / 0.7887 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.007006, allocations: 15.97 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 8.304e-05/0.007089, allocations: 32.58 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.007394, allocations: 131.6 kB / 0.7889 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.007397, allocations: 1.656 kB / 0.7889 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.957e-06/0.007401, allocations: 4 kB / 0.7889 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.007405, allocations: 0 / 0.7889 GB, free: 10.27 MB / 0.7448 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.0007835/0.008188, allocations: 421.9 kB / 0.7893 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.008232, allocations: 21.36 kB / 0.7893 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.008385, allocations: 16.83 kB / 0.7893 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.008535, allocations: 112.5 kB / 0.7894 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.008555, allocations: 9.969 kB / 0.7894 GB, free: 9.637 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.008587, allocations: 8.375 kB / 0.7894 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.008816, allocations: 62.22 kB / 0.7895 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.008824, allocations: 192 / 0.7895 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.008834, allocations: 3.844 kB / 0.7895 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-06/0.008838, allocations: 384 / 0.7895 GB, free: 9.562 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.009037, allocations: 39.84 kB / 0.7895 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006551/0.009692, allocations: 311.7 kB / 0.7898 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.009885, allocations: 47.05 kB / 0.7899 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.01001, allocations: 27.77 kB / 0.7899 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.01003, allocations: 0 / 0.7899 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.01029, allocations: 101.4 kB / 0.79 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.01029, allocations: 0.5938 kB / 0.79 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0005388/0.01083, allocations: 122.4 kB / 0.7901 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.01089, allocations: 52.62 kB / 0.7902 GB, free: 8.793 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.01133, allocations: 185.8 kB / 0.7903 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.502e-05/0.01137, allocations: 29.64 kB / 0.7904 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.0115, allocations: 139.4 kB / 0.7905 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.01155, allocations: 19.97 kB / 0.7905 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.01168, allocations: 44.52 kB / 0.7906 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003742/0.01206, allocations: 0.4962 MB / 0.791 GB, free: 7.84 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.01231, allocations: 81.61 kB / 0.7911 GB, free: 7.754 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.01262, allocations: 121.4 kB / 0.7912 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.01301, allocations: 141.9 kB / 0.7914 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01302, allocations: 0 / 0.7914 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007435/0.01376, allocations: 237.7 kB / 0.7916 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.998e-05/0.01382, allocations: 42.78 kB / 0.7916 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.01382, allocations: 0 / 0.7916 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.01384, allocations: 4 kB / 0.7916 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.01396, allocations: 18.14 kB / 0.7917 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.01396, allocations: 0 / 0.7917 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.01421, allocations: 23.94 kB / 0.7917 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.01425, allocations: 15.98 kB / 0.7917 GB, free: 7.098 MB / 0.7448 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.0001951/0.01445, allocations: 167.3 kB / 0.7919 GB, free: 6.926 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.01448, allocations: 7.938 kB / 0.7919 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003759/0.01486, allocations: 106 kB / 0.792 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01486, allocations: 0 / 0.792 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.01486, allocations: 0 / 0.792 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01487, allocations: 0 / 0.792 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006372/0.0155, allocations: 355 kB / 0.7923 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.0155, allocations: 0 / 0.7923 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-05/0.01557, allocations: 7.984 kB / 0.7923 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.01558, allocations: 0 / 0.7923 GB, free: 6.418 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.01559, allocations: 4.562 kB / 0.7923 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01559, allocations: 3.938 kB / 0.7923 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01559, allocations: 0.5625 kB / 0.7923 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004826/0.01608, allocations: 252.3 kB / 0.7926 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.7e-05/0.01609, allocations: 4.547 kB / 0.7926 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.01612, allocations: 1.344 kB / 0.7926 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.01625, allocations: 11.98 kB / 0.7926 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.0163, allocations: 8 kB / 0.7926 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.01631, allocations: 3.984 kB / 0.7926 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001207/0.01643, allocations: 131.9 kB / 0.7927 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.9e-07/0.01643, allocations: 0 / 0.7927 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004748/0.01691, allocations: 29.81 kB / 0.7927 GB, free: 5.961 MB / 0.7448 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.0002096/0.01712, allocations: 111.2 kB / 0.7928 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005872/0.01771, allocations: 205.6 kB / 0.793 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01771, allocations: 0.6875 kB / 0.793 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.01787, allocations: 39.61 kB / 0.7931 GB, free: 5.574 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.01832, allocations: 23.17 kB / 0.7931 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000475/0.01879, allocations: 163.1 kB / 0.7933 GB, free: 5.367 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.0189, allocations: 72.27 kB / 0.7933 GB, free: 5.277 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.476e-05/0.01895, allocations: 9.141 kB / 0.7933 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.01899, allocations: 16.5 kB / 0.7934 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/0.01899, allocations: 0 / 0.7934 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of Templates: time 0.006748/0.02574, allocations: 1.531 MB / 0.7948 GB, free: 3.777 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.149397280067205]