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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.007597/0.007597, allocations: 101.4 kB / 15.88 MB, free: 5.867 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.001776/0.001776, allocations: 193.6 kB / 16.79 MB, free: 5.809 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.465/1.465, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.392/2.392, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 59.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.689/0.6906, allocations: 140.4 MB / 0.9496 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002778/0.6935, allocations: 0.7868 MB / 0.9504 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001943/0.6954, allocations: 1.196 MB / 0.9515 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.272e-05/0.6955, allocations: 3.938 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.951e-05/0.6956, allocations: 1.094 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.302e-05/0.6957, allocations: 13.12 kB / 0.9515 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.6963, allocations: 124.8 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.6965, allocations: 102.1 kB / 0.9518 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.6966, allocations: 14.17 kB / 0.9518 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.6968, allocations: 39.25 kB / 0.9518 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.978e-05/0.6968, allocations: 38.92 kB / 0.9518 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.6969, allocations: 6.656 kB / 0.9519 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.697, allocations: 23.56 kB / 0.9519 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.697, allocations: 15.14 kB / 0.9519 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.189e-05/0.6971, allocations: 40.28 kB / 0.9519 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.6973, allocations: 69.03 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.6973, allocations: 0 / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.12e-07/0.6973, allocations: 1.438 kB / 0.952 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.6973, allocations: 0 / 0.952 GB, free: 7.312 MB / 0.7169 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.0006375/0.6979, allocations: 409.6 kB / 0.9524 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.698, allocations: 13.81 kB / 0.9524 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.663e-05/0.6981, allocations: 5.719 kB / 0.9524 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.811e-05/0.6982, allocations: 179.8 kB / 0.9526 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.6982, allocations: 3.312 kB / 0.9526 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.6982, allocations: 5.75 kB / 0.9526 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.6984, allocations: 64.72 kB / 0.9526 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.6985, allocations: 1.531 kB / 0.9526 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.6985, allocations: 3.938 kB / 0.9527 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.6985, allocations: 1.594 kB / 0.9527 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.6987, allocations: 46.98 kB / 0.9527 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.6992, allocations: 329.3 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.6993, allocations: 50.11 kB / 0.9531 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.188e-05/0.6994, allocations: 31.28 kB / 0.9531 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.6995, allocations: 0 / 0.9531 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.6997, allocations: 86.86 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/0.6997, allocations: 3.938 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000455/0.7002, allocations: 145.1 kB / 0.9533 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.7002, allocations: 53.88 kB / 0.9534 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.623e-05/0.7003, allocations: 112.7 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.7004, allocations: 32.17 kB / 0.9535 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.511e-05/0.7004, allocations: 87.89 kB / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.7004, allocations: 22.36 kB / 0.9536 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/0.7005, allocations: 32.3 kB / 0.9536 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.7006, allocations: 327.9 kB / 0.954 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.7007, allocations: 54.31 kB / 0.954 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.7009, allocations: 77.11 kB / 0.9541 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.7011, allocations: 128 kB / 0.9542 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.7012, allocations: 1.594 kB / 0.9542 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004014/0.7016, allocations: 197.5 kB / 0.9544 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.7016, allocations: 43.78 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.7016, allocations: 0 / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.7016, allocations: 1.5 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.948e-05/0.7018, allocations: 12.77 kB / 0.9544 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.7018, allocations: 13.56 kB / 0.9545 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.702, allocations: 32.48 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.702, allocations: 9.594 kB / 0.9545 GB, free: 4.977 MB / 0.7169 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 7.603e-05/0.7021, allocations: 120.2 kB / 0.9546 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.7021, allocations: 6.438 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.7024, allocations: 113.9 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.7024, allocations: 1.219 kB / 0.9547 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.7024, allocations: 5.094 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7024, allocations: 0 / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.7028, allocations: 362.6 kB / 0.9551 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.7028, allocations: 480 / 0.9551 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-05/0.7029, allocations: 15.05 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.7029, allocations: 0 / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.7029, allocations: 1.125 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7029, allocations: 1.5 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7029, allocations: 3.938 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.7032, allocations: 210.8 kB / 0.9553 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.7032, allocations: 78.08 kB / 0.9554 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.244e-05/0.7032, allocations: 13.3 kB / 0.9554 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.7033, allocations: 11.97 kB / 0.9554 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.7034, allocations: 10.55 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.7034, allocations: 2.812 kB / 0.9554 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.946e-05/0.7034, allocations: 90.33 kB / 0.9555 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7034, allocations: 0 / 0.9555 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002637/0.7037, allocations: 23.75 kB / 0.9555 GB, free: 4.023 MB / 0.7169 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.0001387/0.7038, allocations: 110.5 kB / 0.9556 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003702/0.7042, allocations: 167.6 kB / 0.9558 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7042, allocations: 0 / 0.9558 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.7044, allocations: 41.72 kB / 0.9558 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.7046, allocations: 19.38 kB / 0.9558 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.705, allocations: 194.7 kB / 0.956 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001273/0.7052, allocations: 0.6845 MB / 0.9567 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.7052, allocations: 10.91 kB / 0.9567 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7052, allocations: 0 / 0.9567 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of Templates: time 0.002769/0.708, allocations: 1.189 MB / 0.9579 GB, free: 2.273 MB / 0.7169 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