Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 102.3 kB / 16.4 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 192.2 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.437/2.437, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 67.89 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8814/0.8828, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001923/0.8847, allocations: 0.734 MB / 1.168 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.8862, allocations: 1.189 MB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.8863, allocations: 4 kB / 1.169 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.014e-05/0.8863, allocations: 7.938 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.943e-05/0.8864, allocations: 15.81 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005597/0.887, allocations: 143.9 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000185/0.8872, allocations: 127.8 kB / 1.169 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.741e-05/0.8873, allocations: 11.98 kB / 1.169 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.8874, allocations: 43.91 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.8875, allocations: 47.86 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.8876, allocations: 12 kB / 1.17 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.765e-05/0.8876, allocations: 27.92 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.189e-05/0.8877, allocations: 11.94 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.8877, allocations: 43.84 kB / 1.17 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.8879, allocations: 103.7 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.8879, allocations: 0 / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8879, allocations: 0 / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.118e-06/0.8879, allocations: 0 / 1.17 GB, free: 1.359 MB / 0.8887 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.0006146/0.8886, allocations: 406.8 kB / 1.17 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.8886, allocations: 12.03 kB / 1.17 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.8887, allocations: 16.83 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.8888, allocations: 172.2 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.8888, allocations: 4.375 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.8e-05/0.8889, allocations: 16.31 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.8891, allocations: 70.16 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.8891, allocations: 192 / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.8891, allocations: 7.922 kB / 1.17 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.8891, allocations: 3.938 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.8893, allocations: 39.95 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.8898, allocations: 320.8 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.89, allocations: 54.48 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.534e-05/0.8901, allocations: 28.92 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.8901, allocations: 80 / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.8903, allocations: 91.34 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.8904, allocations: 0 / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004289/0.8908, allocations: 137.5 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.8908, allocations: 55.41 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.877e-05/0.8909, allocations: 113.8 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.891, allocations: 29.7 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.94e-05/0.891, allocations: 96.03 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.8911, allocations: 23.73 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.108e-05/0.8912, allocations: 33.7 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.8913, allocations: 322.8 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.8914, allocations: 43.97 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.8916, allocations: 83.39 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.8919, allocations: 129 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.8919, allocations: 4 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004382/0.8924, allocations: 199.1 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.8924, allocations: 33.7 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.8924, allocations: 4 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.8924, allocations: 0 / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.8926, allocations: 11.98 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.8926, allocations: 4.312 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.8928, allocations: 31.95 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.8928, allocations: 12.06 kB / 1.172 GB, free: 14.53 MB / 0.9044 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 8.898e-05/0.8929, allocations: 121.7 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.8929, allocations: 11.89 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.8932, allocations: 118.4 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.8932, allocations: 4 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.8932, allocations: 0 / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.8933, allocations: 0 / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004257/0.8937, allocations: 370.4 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.8937, allocations: 3.938 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.8938, allocations: 7.984 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.8938, allocations: 4 kB / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.8938, allocations: 0 / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.8938, allocations: 0 / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.8938, allocations: 0 / 1.173 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.8941, allocations: 203.4 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/0.8942, allocations: 89 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.8942, allocations: 4 kB / 1.173 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.623e-05/0.8943, allocations: 4 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.8943, allocations: 7.922 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.8944, allocations: 4 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.687e-05/0.8944, allocations: 99.2 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8944, allocations: 0 / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002644/0.8947, allocations: 27.94 kB / 1.173 GB, free: 13.37 MB / 0.9044 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.0001355/0.8948, allocations: 115.3 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003765/0.8952, allocations: 167.3 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8952, allocations: 0 / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.8954, allocations: 36.09 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.8956, allocations: 15.98 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003757/0.896, allocations: 180.2 kB / 1.174 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.8963, allocations: 0.6923 MB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.974e-05/0.8963, allocations: 11.44 kB / 1.174 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of SimCode: time 2.61e-07/0.8963, allocations: 4 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of Templates: time 0.002893/0.8992, allocations: 1.199 MB / 1.176 GB, free: 10.88 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches