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.001218/0.001218, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 192 kB / 16.53 MB, free: 6.391 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.473/1.473, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.449/2.449, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8801/0.8814, allocations: 140.4 MB / 0.9496 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002526/0.884, allocations: 0.7222 MB / 0.9503 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001871/0.8859, allocations: 1.177 MB / 0.9514 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.066e-05/0.886, allocations: 1.375 kB / 0.9514 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.016e-05/0.886, allocations: 7.922 kB / 0.9515 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.8862, allocations: 16.95 kB / 0.9515 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006746/0.8869, allocations: 144.5 kB / 0.9516 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002201/0.8871, allocations: 120.7 kB / 0.9517 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.8872, allocations: 17.59 kB / 0.9517 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.8873, allocations: 43.94 kB / 0.9518 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.8875, allocations: 39.78 kB / 0.9518 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.8875, allocations: 10.38 kB / 0.9518 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.719e-05/0.8876, allocations: 24.36 kB / 0.9519 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.336e-05/0.8876, allocations: 13.58 kB / 0.9519 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.025e-05/0.8877, allocations: 48.39 kB / 0.9519 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.888, allocations: 108.7 kB / 0.952 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.888, allocations: 4 kB / 0.952 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.916e-06/0.888, allocations: 0 / 0.952 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.888, allocations: 0 / 0.952 GB, free: 7.191 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.0006601/0.8887, allocations: 408.4 kB / 0.9524 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.8887, allocations: 9.625 kB / 0.9524 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.111e-05/0.8888, allocations: 6.188 kB / 0.9524 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.8889, allocations: 174.9 kB / 0.9526 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.8889, allocations: 15.67 kB / 0.9526 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.889, allocations: 5.844 kB / 0.9526 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.8892, allocations: 69.09 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.8892, allocations: 192 / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.8892, allocations: 5.062 kB / 0.9527 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.8892, allocations: 4.906 kB / 0.9527 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.8894, allocations: 42.83 kB / 0.9527 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004834/0.8899, allocations: 329.9 kB / 0.953 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.8901, allocations: 50.61 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.96e-05/0.8902, allocations: 30.25 kB / 0.9531 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.8902, allocations: 0 / 0.9531 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003151/0.8906, allocations: 87.92 kB / 0.9532 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.8906, allocations: 0 / 0.9532 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004977/0.8911, allocations: 136.7 kB / 0.9533 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.8911, allocations: 56.97 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.116e-05/0.8912, allocations: 116.7 kB / 0.9535 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.8912, allocations: 36.67 kB / 0.9535 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.8913, allocations: 88.02 kB / 0.9536 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.8913, allocations: 18.17 kB / 0.9536 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.8914, allocations: 36.14 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.46e-05/0.8915, allocations: 320.2 kB / 0.954 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.8916, allocations: 50.8 kB / 0.954 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.8918, allocations: 76.23 kB / 0.9541 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.8921, allocations: 128.4 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.8921, allocations: 1.719 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004391/0.8925, allocations: 201.9 kB / 0.9544 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.8926, allocations: 43 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.8926, allocations: 1.156 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.8926, allocations: 1.438 kB / 0.9545 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.8927, allocations: 16.73 kB / 0.9545 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.8928, allocations: 1.219 kB / 0.9545 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.893, allocations: 31.78 kB / 0.9545 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.893, allocations: 14.14 kB / 0.9545 GB, free: 4.863 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 9.867e-05/0.8931, allocations: 124.2 kB / 0.9546 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.8932, allocations: 6.406 kB / 0.9546 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003105/0.8935, allocations: 114.6 kB / 0.9548 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.8935, allocations: 1.469 kB / 0.9548 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.8935, allocations: 0 / 0.9548 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.8935, allocations: 0 / 0.9548 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.8939, allocations: 363.3 kB / 0.9551 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.8939, allocations: 4 kB / 0.9551 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.113e-05/0.894, allocations: 14.89 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.894, allocations: 0 / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.894, allocations: 5.406 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.894, allocations: 0 / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.894, allocations: 1.469 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.8943, allocations: 213.9 kB / 0.9553 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.008e-05/0.8944, allocations: 83.95 kB / 0.9554 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.8944, allocations: 0 / 0.9554 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.8945, allocations: 8.172 kB / 0.9554 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-05/0.8946, allocations: 14.8 kB / 0.9554 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.8946, allocations: 2.75 kB / 0.9554 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.933e-05/0.8946, allocations: 94.3 kB / 0.9555 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8946, allocations: 0 / 0.9555 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002677/0.8949, allocations: 22.81 kB / 0.9555 GB, free: 3.906 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.0001905/0.8951, allocations: 107.1 kB / 0.9556 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003825/0.8955, allocations: 167.9 kB / 0.9558 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8955, allocations: 128 / 0.9558 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.8956, allocations: 41.5 kB / 0.9558 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.8959, allocations: 18.89 kB / 0.9559 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.8963, allocations: 153.8 kB / 0.956 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.8964, allocations: 0.6924 MB / 0.9567 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.8965, allocations: 3.844 kB / 0.9567 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.147e-05/0.8965, allocations: 15.17 kB / 0.9567 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8965, allocations: 3.938 kB / 0.9567 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of Templates: time 0.004557/0.9011, allocations: 1.395 MB / 0.9581 GB, free: 2.086 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/jenkins/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