Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001792/0.001792, allocations: 104.3 kB / 19.7 MB, free: 2.156 MB / 14.72 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.001983/0.001983, allocations: 212.3 kB / 22.99 MB, free: 4.984 MB / 14.72 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.712/1.712, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.286/3.286, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 68.36 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3791, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002054/0.3811, allocations: 0.72 MB / 1.328 GB, free: 304 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3828, allocations: 1.213 MB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-05/0.3828, allocations: 0 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.3829, allocations: 7.922 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.126e-05/0.383, allocations: 15.86 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006053/0.3836, allocations: 140.2 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.3837, allocations: 119.7 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.015e-05/0.3838, allocations: 8 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.3839, allocations: 59.84 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.3841, allocations: 47.86 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.3841, allocations: 8 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.492e-05/0.3842, allocations: 24 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.3842, allocations: 11.98 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.755e-05/0.3842, allocations: 43.83 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.3844, allocations: 111.7 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3844, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3844, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.3845, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 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.0006464/0.3851, allocations: 339.7 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3851, allocations: 11.97 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3852, allocations: 8.938 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.3854, allocations: 122.4 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.3854, allocations: 12.31 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.3854, allocations: 8.359 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.3856, allocations: 66.22 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.3856, allocations: 192 / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.3856, allocations: 7.922 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3856, allocations: 0 / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.3858, allocations: 47.95 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004619/0.3863, allocations: 248.4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.3865, allocations: 50.5 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.3866, allocations: 28.92 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.3866, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.3868, allocations: 87.36 kB / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.3868, allocations: 0 / 1.331 GB, free: 13.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004996/0.3873, allocations: 141.6 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.3874, allocations: 55.41 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3875, allocations: 117.8 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.3875, allocations: 25.7 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/0.3876, allocations: 88.14 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.3876, allocations: 23.8 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.954e-05/0.3877, allocations: 41.69 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3878, allocations: 314.8 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.388, allocations: 81.66 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.3882, allocations: 105.1 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.3885, allocations: 133.4 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3885, allocations: 4 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004951/0.389, allocations: 232.9 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.389, allocations: 33.7 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.389, allocations: 7.938 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3891, allocations: 3.938 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3892, allocations: 11.98 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.3892, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.3894, allocations: 43.97 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.3894, allocations: 8 kB / 1.332 GB, free: 11.79 MB / 1.029 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.0001195/0.3895, allocations: 122.2 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.3895, allocations: 11.94 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.3899, allocations: 118.3 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3899, allocations: 0 / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3899, allocations: 0 / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3899, allocations: 4 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004344/0.3903, allocations: 310.1 kB / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3903, allocations: 0 / 1.332 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.3904, allocations: 12 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3904, allocations: 3.984 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.3904, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3904, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3904, allocations: 0 / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.3907, allocations: 207.4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.3907, allocations: 7.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.3908, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.146e-05/0.3908, allocations: 11.98 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.3909, allocations: 7.984 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.3909, allocations: 0 / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.835e-05/0.391, allocations: 91.27 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.391, allocations: 0 / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002612/0.3912, allocations: 23.94 kB / 1.333 GB, free: 10.8 MB / 1.029 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.0001641/0.3914, allocations: 115.3 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004126/0.3918, allocations: 181 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3918, allocations: 288 / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.3919, allocations: 35.95 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.3922, allocations: 19.92 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.3926, allocations: 166.8 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.065e-05/0.3927, allocations: 75.27 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.144e-05/0.3927, allocations: 4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.3927, allocations: 11.44 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of SimCode: time 4.51e-07/0.3927, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of Templates: time 0.004681/0.3974, allocations: 1.582 MB / 1.335 GB, free: 8.586 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.503408557007788]