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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001104/0.001104, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001235/0.001235, allocations: 192 kB / 16.25 MB, free: 6.633 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.486/1.486, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.769/2.769, allocations: 437 MB / 0.71 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.89 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7827/0.7841, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002096/0.7863, allocations: 0.7933 MB / 1.018 GB, free: 1.926 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.7877, allocations: 1.179 MB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.19e-05/0.7878, allocations: 4 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.469e-05/0.7878, allocations: 3.938 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.897e-05/0.7879, allocations: 7.922 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.7884, allocations: 131 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.7886, allocations: 119.8 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.7887, allocations: 15.98 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.996e-05/0.7888, allocations: 43.91 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.489e-05/0.7889, allocations: 43.88 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.7889, allocations: 12 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.114e-05/0.789, allocations: 27.92 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.029e-05/0.789, allocations: 8 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.092e-05/0.7891, allocations: 43.84 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.7893, allocations: 107.7 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.7893, allocations: 0 / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7893, allocations: 0 / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.7893, allocations: 0 / 1.019 GB, free: 180 kB / 0.7637 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.000624/0.7899, allocations: 407 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.79, allocations: 12.03 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.79, allocations: 12.78 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.7901, allocations: 176.2 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.7902, allocations: 8.375 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.7902, allocations: 8.375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.7904, allocations: 62.22 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.7904, allocations: 8.125 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.7904, allocations: 3.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.7905, allocations: 4 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.7906, allocations: 39.95 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.7911, allocations: 332.6 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.7913, allocations: 50.55 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.303e-05/0.7914, allocations: 28.92 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.7914, allocations: 4 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.7917, allocations: 87.3 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.482e-06/0.7917, allocations: 4 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004387/0.7921, allocations: 129.5 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.7922, allocations: 59.41 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.901e-05/0.7923, allocations: 109.8 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.7923, allocations: 29.7 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.836e-05/0.7924, allocations: 88.12 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.7924, allocations: 23.81 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.7925, allocations: 37.7 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.7926, allocations: 326.8 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.7928, allocations: 47.91 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.7929, allocations: 75.39 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002669/0.7932, allocations: 137 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.7932, allocations: 480 / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000406/0.7936, allocations: 195.2 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.7937, allocations: 33.69 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.7937, allocations: 4 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.7937, allocations: 4.062 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.778e-05/0.7938, allocations: 19.92 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.7938, allocations: 7.938 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.794, allocations: 31.95 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.7941, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 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.901e-05/0.7942, allocations: 123.6 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.7942, allocations: 11.89 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000318/0.7945, allocations: 114 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.7945, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.7946, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.7946, allocations: 3.938 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.795, allocations: 358.5 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.795, allocations: 8 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.033e-05/0.7951, allocations: 11.98 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.7951, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.7951, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.7951, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7951, allocations: 0 / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003002/0.7954, allocations: 219.7 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-05/0.7955, allocations: 89 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.7955, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.677e-05/0.7956, allocations: 4 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.7957, allocations: 11.92 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.7957, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.855e-05/0.7957, allocations: 87.27 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 8.1e-08/0.7957, allocations: 0 / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002542/0.796, allocations: 31.94 kB / 1.023 GB, free: 12.18 MB / 0.7794 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.0001615/0.7962, allocations: 111.2 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003816/0.7966, allocations: 167.6 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.7966, allocations: 0 / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.7967, allocations: 39.91 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.797, allocations: 21.73 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003957/0.7974, allocations: 170.7 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.7977, allocations: 0.6853 MB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.073e-05/0.7977, allocations: 4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.387e-05/0.7978, allocations: 15.44 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of SimCode: time 2e-07/0.7978, allocations: 0 / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of Templates: time 0.004198/0.802, allocations: 1.345 MB / 1.025 GB, free: 9.578 MB / 0.7794 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 -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/jenkins/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