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.001741/0.001741, allocations: 107.8 kB / 15.99 MB, free: 6.336 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.001945/0.001945, allocations: 194.8 kB / 16.91 MB, free: 6.18 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.362/1.362, allocations: 222.9 MB / 240.6 MB, free: 13.74 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.219/2.219, allocations: 390.2 MB / 0.665 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 62.91 kB / 0.8127 GB, free: 32.45 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2934, allocations: 140.4 MB / 0.9498 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002135/0.2956, allocations: 0.7896 MB / 0.9505 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.2972, allocations: 1.183 MB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.039e-05/0.2972, allocations: 0 / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.2973, allocations: 3.938 kB / 0.9517 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.251e-05/0.2974, allocations: 7.922 kB / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005289/0.2979, allocations: 135.4 kB / 0.9518 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.2981, allocations: 111.9 kB / 0.9519 GB, free: 7 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.2982, allocations: 15.98 kB / 0.952 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2984, allocations: 55.83 kB / 0.952 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.981e-05/0.2984, allocations: 39.89 kB / 0.9521 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.2985, allocations: 8 kB / 0.9521 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.077e-05/0.2986, allocations: 27.98 kB / 0.9521 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/0.2986, allocations: 11.94 kB / 0.9521 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.2987, allocations: 47.83 kB / 0.9521 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.2988, allocations: 75.83 kB / 0.9522 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2988, allocations: 0 / 0.9522 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2988, allocations: 0 / 0.9522 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.2988, allocations: 0 / 0.9522 GB, free: 6.723 MB / 0.7325 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.000599/0.2994, allocations: 413.3 kB / 0.9526 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.2995, allocations: 8.031 kB / 0.9526 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.165e-05/0.2995, allocations: 8.844 kB / 0.9526 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2996, allocations: 172.3 kB / 0.9528 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2997, allocations: 4.375 kB / 0.9528 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.2997, allocations: 4.375 kB / 0.9528 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.2999, allocations: 70.16 kB / 0.9529 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.2999, allocations: 192 / 0.9529 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.2999, allocations: 11.92 kB / 0.9529 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2999, allocations: 4 kB / 0.9529 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.3001, allocations: 39.95 kB / 0.9529 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.3006, allocations: 332.6 kB / 0.9532 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3008, allocations: 50.56 kB / 0.9533 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.3009, allocations: 28.92 kB / 0.9533 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.3009, allocations: 0 / 0.9533 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.3012, allocations: 87.42 kB / 0.9534 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3012, allocations: 0 / 0.9534 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004353/0.3017, allocations: 141.5 kB / 0.9535 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/0.3017, allocations: 51.41 kB / 0.9536 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.339e-05/0.3018, allocations: 117.8 kB / 0.9537 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.3018, allocations: 29.7 kB / 0.9537 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.434e-05/0.3019, allocations: 92.08 kB / 0.9538 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.3019, allocations: 15.8 kB / 0.9538 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-05/0.302, allocations: 41.69 kB / 0.9539 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3021, allocations: 322.7 kB / 0.9542 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.3023, allocations: 55.95 kB / 0.9542 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3025, allocations: 75.34 kB / 0.9543 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.3027, allocations: 129.1 kB / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3027, allocations: 0 / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000437/0.3032, allocations: 199.1 kB / 0.9546 GB, free: 4 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.233e-05/0.3032, allocations: 39.89 kB / 0.9546 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3032, allocations: 0 / 0.9546 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3033, allocations: 8.062 kB / 0.9547 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.3034, allocations: 11.98 kB / 0.9547 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3034, allocations: 0 / 0.9547 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.3036, allocations: 36.33 kB / 0.9547 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.3037, allocations: 15.98 kB / 0.9547 GB, free: 3.887 MB / 0.7325 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.888e-05/0.3038, allocations: 123.7 kB / 0.9548 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3038, allocations: 8 kB / 0.9548 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.3041, allocations: 110 kB / 0.9549 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/0.3041, allocations: 0 / 0.9549 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3041, allocations: 0 / 0.9549 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3041, allocations: 3.984 kB / 0.955 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000424/0.3046, allocations: 370.4 kB / 0.9553 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3046, allocations: 8 kB / 0.9553 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/0.3046, allocations: 4 kB / 0.9553 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3046, allocations: 0 / 0.9553 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.3047, allocations: 7.984 kB / 0.9553 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3047, allocations: 0 / 0.9553 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3047, allocations: 0 / 0.9553 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.305, allocations: 211.8 kB / 0.9555 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.385e-05/0.3051, allocations: 81.02 kB / 0.9556 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.3051, allocations: 4 kB / 0.9556 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.3052, allocations: 11.98 kB / 0.9556 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.3052, allocations: 7.938 kB / 0.9556 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3052, allocations: 7.984 kB / 0.9556 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.548e-05/0.3053, allocations: 83.28 kB / 0.9557 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3053, allocations: 7.938 kB / 0.9557 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002626/0.3056, allocations: 16 kB / 0.9557 GB, free: 2.738 MB / 0.7325 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.000142/0.3057, allocations: 115.3 kB / 0.9558 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003864/0.3061, allocations: 175.2 kB / 0.956 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3061, allocations: 0 / 0.956 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.3063, allocations: 43.98 kB / 0.9561 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.3066, allocations: 23.22 kB / 0.9561 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000369/0.3069, allocations: 179.9 kB / 0.9562 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.3072, allocations: 0.6922 MB / 0.9569 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.3072, allocations: 15.38 kB / 0.9569 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.3073, allocations: 8 kB / 0.9569 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of Templates: time 0.002794/0.3101, allocations: 1.182 MB / 0.9581 GB, free: 240 kB / 0.7325 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