Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001371/0.001371, allocations: 115 kB / 16.42 MB, free: 6.488 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.00142/0.001421, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.508/1.508, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.211/2.211, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.91 kB / 0.9515 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9811/0.9826, allocations: 140.4 MB / 1.089 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00204/0.9846, allocations: 0.7303 MB / 1.089 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001646/0.9863, allocations: 1.19 MB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.615e-05/0.9864, allocations: 1.438 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.06e-05/0.9864, allocations: 4.547 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.9866, allocations: 6.641 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006723/0.9872, allocations: 151.7 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002385/0.9875, allocations: 121.6 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.9876, allocations: 16.75 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.9878, allocations: 48.02 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.9879, allocations: 46.36 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.555e-05/0.9879, allocations: 10.31 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.595e-05/0.988, allocations: 20.92 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.436e-05/0.9881, allocations: 12.36 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.45e-05/0.9882, allocations: 43.81 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.9884, allocations: 109.2 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.9884, allocations: 1.312 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.974e-06/0.9884, allocations: 0 / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.9884, allocations: 0 / 1.091 GB, free: 3.887 MB / 0.8575 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.0006086/0.9891, allocations: 406.4 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.9891, allocations: 9.453 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.9892, allocations: 9.219 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.9893, allocations: 177 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.9893, allocations: 8.266 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.9893, allocations: 6.75 kB / 1.092 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.9896, allocations: 65.25 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.9896, allocations: 4.188 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.9896, allocations: 5.094 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.9896, allocations: 0.7031 kB / 1.092 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.9898, allocations: 41.92 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.9903, allocations: 326.9 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.9905, allocations: 53.58 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.9906, allocations: 28.66 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.9907, allocations: 0.75 kB / 1.092 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.9909, allocations: 90.83 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.9909, allocations: 0 / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004988/0.9914, allocations: 141.8 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.9915, allocations: 57.89 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.585e-05/0.9916, allocations: 110.6 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.9916, allocations: 31.95 kB / 1.093 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.9917, allocations: 93.12 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.9917, allocations: 15.25 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.9918, allocations: 41.02 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.704e-05/0.9918, allocations: 323.3 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.992, allocations: 51.38 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.9922, allocations: 76.2 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002911/0.9925, allocations: 134.8 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9925, allocations: 0 / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004309/0.993, allocations: 194.3 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.993, allocations: 38.84 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.993, allocations: 2 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.9931, allocations: 6.125 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.9932, allocations: 11.34 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.9932, allocations: 2.547 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.9934, allocations: 37.36 kB / 1.094 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.9934, allocations: 8.312 kB / 1.094 GB, free: 1.785 MB / 0.8575 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.0001039/0.9935, allocations: 124.9 kB / 1.094 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.9936, allocations: 6.406 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003068/0.9939, allocations: 112.7 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.9939, allocations: 1.422 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.9939, allocations: 0 / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.9939, allocations: 83.53 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.994, allocations: 1.828 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.287e-05/0.994, allocations: 14.88 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.9941, allocations: 10.05 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003214/0.9944, allocations: 190.9 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000293/0.9947, allocations: 273.6 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001179/0.9948, allocations: 43.14 kB / 1.094 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.892e-05/0.9949, allocations: 93.72 kB / 1.094 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of Backend: time 2.1e-07/0.9949, allocations: 3.938 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006027/0.9955, allocations: 213.5 kB / 1.095 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004848/0.996, allocations: 0.5997 MB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of Templates: time 0.005123/1.001, allocations: 1.52 MB / 1.097 GB, free: 132 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches