Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002521/0.002521, allocations: 190.9 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.567/1.567, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.789/2.789, allocations: 437 MB / 0.71 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001793, allocations: 67.89 kB / 0.8687 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7611/0.7629, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002936/0.7659, allocations: 0.8127 MB / 1.018 GB, free: 1.898 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.7678, allocations: 1.155 MB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.217e-05/0.7679, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.611e-05/0.768, allocations: 7.922 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.7681, allocations: 11.92 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006094/0.7687, allocations: 119.4 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.7689, allocations: 127.8 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.7691, allocations: 24.14 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.7692, allocations: 55.84 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.783e-05/0.7693, allocations: 35.89 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.7693, allocations: 12 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.7694, allocations: 31.97 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.7695, allocations: 15.92 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.918e-05/0.7696, allocations: 43.86 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.7698, allocations: 119.7 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.7698, allocations: 0 / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7698, allocations: 0 / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.7698, allocations: 4 kB / 1.019 GB, free: 132 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008073/0.7707, allocations: 414.9 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.7707, allocations: 16.03 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.115e-05/0.7708, allocations: 8.844 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.771, allocations: 188.1 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.771, allocations: 8.375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.771, allocations: 12.38 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.7713, allocations: 66.22 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.7713, allocations: 7.922 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.7713, allocations: 0 / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.7713, allocations: 4 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.7715, allocations: 51.89 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005643/0.7721, allocations: 348.6 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.7723, allocations: 66.58 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.616e-05/0.7724, allocations: 24.97 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.7724, allocations: 11.98 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.7727, allocations: 87.34 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.754e-06/0.7727, allocations: 0 / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005022/0.7732, allocations: 157.5 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.7732, allocations: 51.41 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.7734, allocations: 121.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.947e-05/0.7734, allocations: 25.7 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.7735, allocations: 96.05 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.7735, allocations: 15.8 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.7736, allocations: 37.7 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.7738, allocations: 326.8 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.7739, allocations: 47.97 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.7741, allocations: 93.11 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.7744, allocations: 154.7 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.7744, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004711/0.7749, allocations: 215.1 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.168e-05/0.775, allocations: 37.69 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.775, allocations: 7.938 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.775, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.7751, allocations: 15.98 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.7752, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.7754, allocations: 47.95 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.7754, allocations: 11.94 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001414/0.7756, allocations: 131.9 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.7756, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.7759, allocations: 122 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.7759, allocations: 4 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.776, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.776, allocations: 4 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004862/0.7765, allocations: 386.3 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.7765, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-05/0.7765, allocations: 7.984 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.7765, allocations: 4 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.7766, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.7766, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.7766, allocations: 7.938 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.7769, allocations: 215.4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.777, allocations: 81.02 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.777, allocations: 3.984 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.7771, allocations: 4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.7772, allocations: 11.92 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.7772, allocations: 8 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.586e-05/0.7773, allocations: 99.75 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7773, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003202/0.7776, allocations: 20 kB / 1.023 GB, free: 11.93 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002513/0.7779, allocations: 107.2 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005114/0.7784, allocations: 183.4 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.7784, allocations: 0 / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.7786, allocations: 39.92 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.7789, allocations: 19.66 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005901/0.7795, allocations: 199.9 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.78, allocations: 0.6866 MB / 1.024 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.863e-05/0.7801, allocations: 7.984 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.7801, allocations: 15.44 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of SimCode: time 4.6e-07/0.7801, allocations: 0 / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of Templates: time 0.004704/0.7848, allocations: 1.372 MB / 1.026 GB, free: 9.246 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches