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.001901/0.001901, allocations: 107.6 kB / 16.42 MB, free: 6.52 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.002383/0.002383, allocations: 188.3 kB / 17.35 MB, free: 5.734 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.43/1.43, allocations: 222.9 MB / 241.1 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.571/2.571, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 64.08 kB / 1.019 GB, free: 9.41 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052/1.054, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00296/1.057, allocations: 0.7351 MB / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002414/1.06, allocations: 1.181 MB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/1.06, allocations: 0 / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.337e-05/1.06, allocations: 7.875 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001365/1.06, allocations: 19.84 kB / 1.169 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008082/1.061, allocations: 146.5 kB / 1.169 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003061/1.061, allocations: 119.7 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/1.061, allocations: 19.98 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/1.061, allocations: 47.91 kB / 1.17 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/1.062, allocations: 43.88 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.564e-05/1.062, allocations: 12 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/1.062, allocations: 27.92 kB / 1.17 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.726e-05/1.062, allocations: 15.92 kB / 1.17 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/1.062, allocations: 39.84 kB / 1.17 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002659/1.062, allocations: 107.2 kB / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/1.062, allocations: 0 / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.315e-06/1.062, allocations: 4 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.925e-06/1.062, allocations: 0 / 1.17 GB, free: 1.312 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.0008218/1.063, allocations: 409.9 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/1.063, allocations: 8.031 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/1.063, allocations: 8.891 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/1.063, allocations: 168.3 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/1.063, allocations: 4.375 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/1.063, allocations: 12.34 kB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/1.064, allocations: 78.14 kB / 1.17 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.064, allocations: 4.125 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/1.064, allocations: 3.938 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/1.064, allocations: 4 kB / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/1.064, allocations: 39.95 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006436/1.065, allocations: 324.7 kB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/1.065, allocations: 58.48 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/1.065, allocations: 24.94 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/1.065, allocations: 0 / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003525/1.065, allocations: 87.36 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/1.065, allocations: 0 / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0005392/1.066, allocations: 141.6 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/1.066, allocations: 55.39 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/1.066, allocations: 117.8 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/1.066, allocations: 29.7 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.064e-05/1.066, allocations: 92.09 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/1.066, allocations: 23.83 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.856e-05/1.066, allocations: 33.7 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001723/1.066, allocations: 318.8 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/1.067, allocations: 51.95 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/1.067, allocations: 75.39 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/1.067, allocations: 129 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/1.067, allocations: 4 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004565/1.068, allocations: 199.1 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.629e-05/1.068, allocations: 45.75 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/1.068, allocations: 0 / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/1.068, allocations: 4 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/1.068, allocations: 8 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/1.068, allocations: 3.984 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/1.068, allocations: 27.97 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/1.068, allocations: 11.98 kB / 1.172 GB, free: 14.48 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 0.0001378/1.068, allocations: 131.2 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/1.068, allocations: 7.953 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003139/1.069, allocations: 113.9 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/1.069, allocations: 3.984 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.069, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/1.069, allocations: 85.06 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/1.069, allocations: 4 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.357e-05/1.069, allocations: 15.92 kB / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.96e-05/1.069, allocations: 4 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003513/1.069, allocations: 185.2 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003901/1.07, allocations: 278.9 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001268/1.07, allocations: 43.95 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.575e-05/1.07, allocations: 91.67 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of Backend: time 3.1e-07/1.07, allocations: 0 / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006682/1.071, allocations: 221.7 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006999/1.071, allocations: 0.6049 MB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of Templates: time 0.005875/1.077, allocations: 1.502 MB / 1.175 GB, free: 11.11 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