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.001532/0.001532, allocations: 114.9 kB / 17.13 MB, free: 6.008 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.00167/0.00167, allocations: 212.7 kB / 20.1 MB, free: 3.055 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.468/1.468, allocations: 230.6 MB / 253.5 MB, free: 15.09 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 2.856/2.856, allocations: 0.49 GB / 0.7923 GB, free: 1.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.002124/0.002124, allocations: 63.91 kB / 1.15 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9387/0.9408, allocations: 176.1 MB / 1.322 GB, free: 25.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001666/0.9425, allocations: 0.733 MB / 1.323 GB, free: 24.56 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.9436, allocations: 1.239 MB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.9436, allocations: 2.594 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.702e-05/0.9437, allocations: 3.938 kB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.346e-05/0.9437, allocations: 13.81 kB / 1.324 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.9442, allocations: 143.2 kB / 1.324 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.9443, allocations: 121.7 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 7.476e-05/0.9444, allocations: 9.766 kB / 1.324 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.783e-05/0.9444, allocations: 43.92 kB / 1.324 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.967e-05/0.9445, allocations: 50.56 kB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.9445, allocations: 10.38 kB / 1.324 GB, free: 23.48 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.9446, allocations: 32.8 kB / 1.324 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.9446, allocations: 10.44 kB / 1.324 GB, free: 23.46 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.868e-05/0.9447, allocations: 43.89 kB / 1.324 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.9448, allocations: 111.8 kB / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.9448, allocations: 0 / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of FrontEnd: time 9.42e-07/0.9448, allocations: 0 / 1.324 GB, free: 23.4 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.877e-06/0.9448, allocations: 0 / 1.324 GB, free: 23.4 MB / 1.061 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.0004846/0.9453, allocations: 417.1 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.9453, allocations: 15.33 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.9454, allocations: 13.98 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.633e-05/0.9455, allocations: 170.2 kB / 1.325 GB, free: 22.78 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.9455, allocations: 3.219 kB / 1.325 GB, free: 22.78 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.9455, allocations: 13.98 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.9457, allocations: 69.95 kB / 1.325 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.9457, allocations: 192 / 1.325 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.9457, allocations: 7.938 kB / 1.325 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.9457, allocations: 6.812 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.9459, allocations: 38.72 kB / 1.325 GB, free: 22.71 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/0.9463, allocations: 323 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.9464, allocations: 50.28 kB / 1.326 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/0.9465, allocations: 32.5 kB / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.9465, allocations: 0 / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.9467, allocations: 82.8 kB / 1.326 GB, free: 22.31 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.9467, allocations: 2.531 kB / 1.326 GB, free: 22.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004012/0.9471, allocations: 144.2 kB / 1.326 GB, free: 22.24 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.948e-05/0.9471, allocations: 51.41 kB / 1.326 GB, free: 22.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.068e-05/0.9472, allocations: 120.2 kB / 1.326 GB, free: 22.07 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.9472, allocations: 28.52 kB / 1.326 GB, free: 22.04 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.9473, allocations: 90.91 kB / 1.326 GB, free: 21.95 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.9473, allocations: 22.31 kB / 1.326 GB, free: 21.93 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.9473, allocations: 31.73 kB / 1.326 GB, free: 21.91 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.9474, allocations: 325.3 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.9475, allocations: 50.08 kB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.9477, allocations: 75.33 kB / 1.327 GB, free: 21.53 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.9479, allocations: 131.6 kB / 1.327 GB, free: 21.44 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.9479, allocations: 480 / 1.327 GB, free: 21.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003782/0.9483, allocations: 208.3 kB / 1.327 GB, free: 21.33 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.9483, allocations: 34.59 kB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.9483, allocations: 2.75 kB / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.9483, allocations: 0 / 1.327 GB, free: 21.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.101e-05/0.9484, allocations: 15.62 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.9484, allocations: 6.875 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.9486, allocations: 33.61 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.9486, allocations: 5.281 kB / 1.327 GB, free: 21.29 MB / 1.061 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.105e-05/0.9487, allocations: 125.1 kB / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.9487, allocations: 6.484 kB / 1.327 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.949, allocations: 124.2 kB / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.949, allocations: 0 / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.949, allocations: 0 / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.949, allocations: 0 / 1.327 GB, free: 21.09 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003515/0.9493, allocations: 367.5 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.9493, allocations: 1.094 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.9494, allocations: 9.656 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.9494, allocations: 4.844 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.9494, allocations: 0.9688 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.9494, allocations: 0.7188 kB / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.9494, allocations: 0 / 1.328 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.9497, allocations: 204.8 kB / 1.328 GB, free: 20.6 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.9497, allocations: 83.3 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.9497, allocations: 8.641 kB / 1.328 GB, free: 20.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.35e-05/0.9498, allocations: 11.45 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.9499, allocations: 10.34 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.9499, allocations: 2.156 kB / 1.328 GB, free: 20.49 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.003e-05/0.9499, allocations: 90.75 kB / 1.328 GB, free: 20.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.9499, allocations: 0 / 1.328 GB, free: 20.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002707/0.9502, allocations: 26.47 kB / 1.328 GB, free: 20.4 MB / 1.061 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.00011/0.9503, allocations: 99.09 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003691/0.9507, allocations: 160.1 kB / 1.328 GB, free: 20.22 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.9507, allocations: 0.9688 kB / 1.328 GB, free: 20.22 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.9508, allocations: 35.03 kB / 1.328 GB, free: 20.21 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.9511, allocations: 17.27 kB / 1.328 GB, free: 20.21 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.9514, allocations: 205.7 kB / 1.328 GB, free: 20.02 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.9515, allocations: 0.6873 MB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.9515, allocations: 13.89 kB / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.9515, allocations: 0 / 1.329 GB, free: 19.32 MB / 1.061 GB Notification: Performance of Templates: time 0.003032/0.9546, allocations: 1.197 MB / 1.33 GB, free: 19.22 MB / 1.061 GB " [Timeout remaining time 299] 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 -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: 11.368602727001416]