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.001592/0.001592, allocations: 107 kB / 16.36 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.001717/0.001717, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.46/1.46, 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.278/2.278, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 65.48 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3212, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002089/0.3233, allocations: 0.7166 MB / 0.9518 GB, free: 7.32 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.3249, allocations: 1.189 MB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.037e-05/0.3249, allocations: 4 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.684e-05/0.325, allocations: 3.938 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.283e-05/0.3251, allocations: 7.875 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.3256, allocations: 143.6 kB / 0.9531 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.3258, allocations: 127.7 kB / 0.9533 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3259, allocations: 15.98 kB / 0.9533 GB, free: 5.82 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.326, allocations: 43.91 kB / 0.9533 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.476e-05/0.3261, allocations: 47.86 kB / 0.9534 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.3262, allocations: 12 kB / 0.9534 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.115e-05/0.3262, allocations: 23.98 kB / 0.9534 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.202e-05/0.3263, allocations: 11.94 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.496e-05/0.3263, allocations: 47.78 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.3265, allocations: 115.7 kB / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3265, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3265, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3266, allocations: 0 / 0.9536 GB, free: 5.523 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.0006153/0.3272, allocations: 401 kB / 0.9539 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3272, allocations: 8.031 kB / 0.954 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.167e-05/0.3273, allocations: 12.83 kB / 0.954 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3274, allocations: 172.3 kB / 0.9541 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.3274, allocations: 8.375 kB / 0.9541 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.3275, allocations: 4.375 kB / 0.9541 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.3276, allocations: 66.22 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.3277, allocations: 8.062 kB / 0.9542 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.3277, allocations: 7.938 kB / 0.9542 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.3277, allocations: 4 kB / 0.9542 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.3279, allocations: 43.95 kB / 0.9543 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.3284, allocations: 328.6 kB / 0.9546 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.3285, allocations: 58.48 kB / 0.9546 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.077e-05/0.3286, allocations: 28.92 kB / 0.9547 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.3287, allocations: 4 kB / 0.9547 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.3289, allocations: 83.36 kB / 0.9548 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.3289, allocations: 0 / 0.9548 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004488/0.3293, allocations: 137.5 kB / 0.9549 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.3294, allocations: 55.34 kB / 0.9549 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.244e-05/0.3295, allocations: 113.8 kB / 0.955 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.3295, allocations: 33.7 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.3296, allocations: 96.14 kB / 0.9552 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3296, allocations: 11.8 kB / 0.9552 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/0.3297, allocations: 38.08 kB / 0.9552 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3299, allocations: 322.8 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001819/0.3301, allocations: 47.97 kB / 0.9556 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.3302, allocations: 79.33 kB / 0.9556 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.3305, allocations: 133 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3305, allocations: 0 / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004006/0.3309, allocations: 199.2 kB / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.331, allocations: 37.7 kB / 0.956 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.331, allocations: 0 / 0.956 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.331, allocations: 4 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.129e-05/0.3311, allocations: 15.92 kB / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3311, allocations: 0 / 0.956 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.3313, allocations: 39.92 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.31e-05/0.3313, allocations: 8 kB / 0.9561 GB, free: 2.691 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.0001081/0.3314, allocations: 124.6 kB / 0.9562 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.719e-05/0.3315, allocations: 11.98 kB / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.3317, allocations: 113.9 kB / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.3318, allocations: 4.078 kB / 0.9563 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3318, allocations: 4 kB / 0.9563 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3318, allocations: 0 / 0.9563 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004311/0.3322, allocations: 362.4 kB / 0.9567 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3322, allocations: 0 / 0.9567 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.037e-05/0.3323, allocations: 19.92 kB / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3323, allocations: 0 / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.3323, allocations: 8 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3323, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3323, allocations: 4 kB / 0.9567 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.3326, allocations: 203.3 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.3327, allocations: 85 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.3327, allocations: 0 / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.3328, allocations: 4 kB / 0.957 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/0.3329, allocations: 19.91 kB / 0.957 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.3329, allocations: 8 kB / 0.957 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.696e-05/0.3329, allocations: 87.27 kB / 0.9571 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3329, allocations: 0 / 0.9571 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002585/0.3332, allocations: 24.38 kB / 0.9571 GB, free: 1.531 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.000169/0.3334, allocations: 115.1 kB / 0.9572 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003552/0.3337, allocations: 167.3 kB / 0.9574 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3338, allocations: 0 / 0.9574 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.3339, allocations: 39.97 kB / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.3342, allocations: 7.984 kB / 0.9574 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003804/0.3346, allocations: 150.2 kB / 0.9576 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.3349, allocations: 0.6923 MB / 0.9582 GB, free: 296 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.999e-05/0.3349, allocations: 3.984 kB / 0.9582 GB, free: 292 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.534e-05/0.3349, allocations: 11.44 kB / 0.9582 GB, free: 280 kB / 0.7325 GB Notification: Performance of SimCode: time 2.01e-07/0.3349, allocations: 0 / 0.9582 GB, free: 280 kB / 0.7325 GB Notification: Performance of Templates: time 0.004055/0.339, allocations: 1.396 MB / 0.9596 GB, free: 14.89 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 cvode -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