Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001601/0.001601, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.001732/0.001732, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.45/1.45, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.806/2.806, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 60.91 kB / 0.8707 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3478, allocations: 151.6 MB / 1.019 GB, free: 9.867 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001997/0.3499, allocations: 0.7388 MB / 1.02 GB, free: 9.121 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.3514, allocations: 1.184 MB / 1.021 GB, free: 7.922 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.847e-05/0.3515, allocations: 4 kB / 1.021 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.3515, allocations: 7.922 kB / 1.021 GB, free: 7.91 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.566e-05/0.3516, allocations: 3.938 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005071/0.3521, allocations: 148.9 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.3523, allocations: 115.8 kB / 1.021 GB, free: 7.652 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.979e-05/0.3524, allocations: 23.97 kB / 1.021 GB, free: 7.629 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.646e-05/0.3525, allocations: 43.91 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.246e-05/0.3526, allocations: 47.81 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.3526, allocations: 12 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.862e-05/0.3527, allocations: 23.98 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.3527, allocations: 11.98 kB / 1.021 GB, free: 7.492 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.3528, allocations: 43.84 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.3529, allocations: 107.7 kB / 1.021 GB, free: 7.344 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.353, allocations: 3.938 kB / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.513e-06/0.353, allocations: 0 / 1.021 GB, free: 7.34 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.353, allocations: 4 kB / 1.021 GB, free: 7.336 MB / 0.795 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.0005875/0.3536, allocations: 408.9 kB / 1.022 GB, free: 6.879 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.3536, allocations: 11.97 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.691e-05/0.3537, allocations: 12.84 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3538, allocations: 164.4 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.3538, allocations: 8.375 kB / 1.022 GB, free: 6.648 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.3538, allocations: 8.375 kB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.354, allocations: 62.22 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3541, allocations: 4.188 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.3541, allocations: 11.88 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.3541, allocations: 0 / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.3543, allocations: 47.89 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.3547, allocations: 328.6 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.3549, allocations: 58.53 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.355, allocations: 28.94 kB / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.355, allocations: 0 / 1.022 GB, free: 6.043 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3553, allocations: 87.3 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.3553, allocations: 0 / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004281/0.3557, allocations: 137.5 kB / 1.023 GB, free: 5.805 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.3558, allocations: 59.41 kB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.029e-05/0.3558, allocations: 109.8 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.3559, allocations: 33.7 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.3559, allocations: 88.14 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.21e-05/0.356, allocations: 23.77 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.929e-05/0.356, allocations: 41.64 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3562, allocations: 326.8 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.3563, allocations: 43.97 kB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.3565, allocations: 71.39 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.3567, allocations: 133 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3568, allocations: 3.938 kB / 1.023 GB, free: 4.812 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004053/0.3572, allocations: 191.2 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.3572, allocations: 37.69 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3572, allocations: 0 / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3572, allocations: 8.062 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.676e-05/0.3573, allocations: 19.92 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3574, allocations: 0 / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.3576, allocations: 31.88 kB / 1.024 GB, free: 4.512 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.3576, allocations: 11.98 kB / 1.024 GB, free: 4.5 MB / 0.795 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.306e-05/0.3577, allocations: 121.7 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.3577, allocations: 8.469 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002864/0.358, allocations: 117.9 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.358, allocations: 0 / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.358, allocations: 4 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.358, allocations: 0 / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004205/0.3585, allocations: 362.4 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3585, allocations: 4 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.937e-05/0.3585, allocations: 7.984 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3585, allocations: 4 kB / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3586, allocations: 0 / 1.024 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3586, allocations: 4 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3586, allocations: 0 / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.3589, allocations: 215.3 kB / 1.025 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.699e-05/0.3589, allocations: 81.02 kB / 1.025 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.3589, allocations: 4 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.359, allocations: 7.984 kB / 1.025 GB, free: 3.473 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.3591, allocations: 7.922 kB / 1.025 GB, free: 3.465 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.3591, allocations: 8 kB / 1.025 GB, free: 3.457 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.779e-05/0.3592, allocations: 87.28 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3592, allocations: 0 / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002812/0.3594, allocations: 23.98 kB / 1.025 GB, free: 3.348 MB / 0.795 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.0001481/0.3596, allocations: 107.2 kB / 1.025 GB, free: 3.234 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003661/0.36, allocations: 167.8 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.36, allocations: 4 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.3601, allocations: 35.91 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.3604, allocations: 24.2 kB / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003702/0.3608, allocations: 158.7 kB / 1.025 GB, free: 2.812 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.3611, allocations: 0.6853 MB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.3611, allocations: 4.281 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.3612, allocations: 7.719 kB / 1.026 GB, free: 2.09 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3612, allocations: 0 / 1.026 GB, free: 2.09 MB / 0.795 GB Notification: Performance of Templates: time 0.003947/0.3651, allocations: 1.393 MB / 1.027 GB, free: 0.7109 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches