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.001544/0.001544, allocations: 112.6 kB / 16.37 MB, free: 6 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.001653/0.001653, allocations: 196 kB / 17.31 MB, free: 5.613 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.26/2.26, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 65.44 kB / 0.814 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2586, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001821/0.2604, allocations: 0.7224 MB / 0.9518 GB, free: 7.344 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00134/0.2618, allocations: 1.192 MB / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.2618, allocations: 0 / 0.953 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.2619, allocations: 3.938 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.971e-05/0.2619, allocations: 7.938 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.2625, allocations: 143.6 kB / 0.9532 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.2626, allocations: 115.8 kB / 0.9533 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.662e-05/0.2627, allocations: 19.98 kB / 0.9533 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.102e-05/0.2628, allocations: 55.83 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.954e-05/0.2629, allocations: 47.81 kB / 0.9534 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.2629, allocations: 8 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.263, allocations: 23.98 kB / 0.9534 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.046e-05/0.263, allocations: 11.98 kB / 0.9534 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.966e-05/0.2631, allocations: 39.84 kB / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.2633, allocations: 107.7 kB / 0.9536 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2633, allocations: 4 kB / 0.9536 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.655e-06/0.2633, allocations: 3.984 kB / 0.9536 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.2633, allocations: 4 kB / 0.9536 GB, free: 5.551 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.000552/0.2638, allocations: 401 kB / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.2639, allocations: 8.031 kB / 0.954 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.2639, allocations: 12.83 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.2641, allocations: 176.2 kB / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2641, allocations: 4.375 kB / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.2641, allocations: 4.375 kB / 0.9542 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.2643, allocations: 70.22 kB / 0.9542 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.2643, allocations: 192 / 0.9542 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.2643, allocations: 3.938 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.2643, allocations: 0 / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.2645, allocations: 43.95 kB / 0.9543 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.2649, allocations: 324.6 kB / 0.9546 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.2651, allocations: 58.55 kB / 0.9546 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.25e-05/0.2652, allocations: 32.92 kB / 0.9547 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.2652, allocations: 0 / 0.9547 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.2654, allocations: 87.3 kB / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.2655, allocations: 4 kB / 0.9548 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004196/0.2659, allocations: 141.5 kB / 0.9549 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.2659, allocations: 51.41 kB / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.266, allocations: 113.8 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2661, allocations: 29.7 kB / 0.9551 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.581e-05/0.2661, allocations: 92.06 kB / 0.9552 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.2661, allocations: 15.81 kB / 0.9552 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.069e-05/0.2662, allocations: 37.7 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.2663, allocations: 322.8 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.2665, allocations: 51.97 kB / 0.9556 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.2667, allocations: 79.33 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.2669, allocations: 137 kB / 0.9558 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2669, allocations: 0 / 0.9558 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004078/0.2674, allocations: 195.2 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.2674, allocations: 37.7 kB / 0.956 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2674, allocations: 4.062 kB / 0.956 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.2674, allocations: 0 / 0.956 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.674e-05/0.2675, allocations: 15.98 kB / 0.956 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.2676, allocations: 320 / 0.956 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.2678, allocations: 35.86 kB / 0.9561 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.2678, allocations: 8 kB / 0.9561 GB, free: 2.73 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 0.0001061/0.2679, allocations: 133.2 kB / 0.9562 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.2679, allocations: 7.984 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.2682, allocations: 114 kB / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2682, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2683, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2683, allocations: 0 / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003939/0.2687, allocations: 370.5 kB / 0.9567 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2687, allocations: 4 kB / 0.9567 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-05/0.2687, allocations: 15.97 kB / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2688, allocations: 0 / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.2688, allocations: 480 / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2688, allocations: 0 / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2688, allocations: 4 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.2691, allocations: 207.3 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-05/0.2691, allocations: 89 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.001e-05/0.2691, allocations: 7.938 kB / 0.957 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.2692, allocations: 8 kB / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.2693, allocations: 11.92 kB / 0.957 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.2693, allocations: 0 / 0.957 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.567e-05/0.2693, allocations: 91.27 kB / 0.9571 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2693, allocations: 0 / 0.9571 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002622/0.2696, allocations: 24 kB / 0.9571 GB, free: 1.562 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.0001377/0.2698, allocations: 111.2 kB / 0.9572 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003683/0.2701, allocations: 163.3 kB / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.2702, allocations: 0 / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.2703, allocations: 47.83 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2706, allocations: 22.05 kB / 0.9574 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.2709, allocations: 150.2 kB / 0.9576 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2711, allocations: 0.6844 MB / 0.9582 GB, free: 324 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.152e-05/0.2712, allocations: 7.984 kB / 0.9582 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.2712, allocations: 11.44 kB / 0.9583 GB, free: 304 kB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.2712, allocations: 0 / 0.9583 GB, free: 304 kB / 0.7325 GB Notification: Performance of Templates: time 0.003675/0.2749, allocations: 1.398 MB / 0.9596 GB, free: 14.91 MB / 0.7481 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 -s gbode -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