Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 79.7 kB / 20.23 MB, free: 4.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00203/0.00203, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.579/1.579, allocations: 177.1 MB / 203.9 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.031/3.031, allocations: 377.8 MB / 0.6232 GB, free: 8.539 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.394e-06/2.394e-06, allocations: 0 / 0.8108 GB, free: 2.152 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.14e-05/3.379e-05, allocations: 3.312 kB / 0.8108 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002081/0.002115, allocations: 0.7678 MB / 0.8115 GB, free: 1.406 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001893/0.004008, allocations: 1.187 MB / 0.8127 GB, free: 212 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.91e-05/0.004068, allocations: 4 kB / 0.8127 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.838e-05/0.004096, allocations: 3.938 kB / 0.8127 GB, free: 204 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 9.202e-05/0.004188, allocations: 16.53 kB / 0.8127 GB, free: 188 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.004717, allocations: 136.5 kB / 0.8128 GB, free: 52 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.004952, allocations: 124.4 kB / 0.813 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.005061, allocations: 20.17 kB / 0.813 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.005208, allocations: 68.44 kB / 0.813 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.005315, allocations: 37.09 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.601e-05/0.005361, allocations: 12 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.005453, allocations: 35.91 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.00548, allocations: 12.81 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.978e-05/0.00556, allocations: 39.89 kB / 0.8132 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.005817, allocations: 144.7 kB / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.00582, allocations: 0 / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.92e-07/0.005821, allocations: 4 kB / 0.8133 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.005826, allocations: 0 / 0.8133 GB, free: 15.56 MB / 0.7761 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.0007022/0.006528, allocations: 439.2 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.006567, allocations: 8.031 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.006704, allocations: 20.89 kB / 0.8138 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.006838, allocations: 122 kB / 0.8139 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.006861, allocations: 8.359 kB / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.006887, allocations: 12.38 kB / 0.8139 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.007072, allocations: 66.17 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.007081, allocations: 2.031 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.007091, allocations: 384 / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.007098, allocations: 4.125 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001599/0.007258, allocations: 47.89 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005637/0.007822, allocations: 328.9 kB / 0.8143 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.007998, allocations: 63.08 kB / 0.8144 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.589e-05/0.008083, allocations: 36.33 kB / 0.8144 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.008105, allocations: 2 kB / 0.8144 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.008321, allocations: 85.03 kB / 0.8145 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.008322, allocations: 0 / 0.8145 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8): time 0.0004214/0.008743, allocations: 138.3 kB / 0.8146 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.008801, allocations: 59.39 kB / 0.8147 GB, free: 14 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.008969, allocations: 190.6 kB / 0.8149 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.009003, allocations: 33.7 kB / 0.8149 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.00911, allocations: 140.2 kB / 0.815 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.009139, allocations: 19.89 kB / 0.8151 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.009244, allocations: 43.36 kB / 0.8151 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0005152/0.009759, allocations: 0.4968 MB / 0.8156 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.009936, allocations: 81.67 kB / 0.8157 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.01017, allocations: 140.9 kB / 0.8158 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.01046, allocations: 162.4 kB / 0.816 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01046, allocations: 0 / 0.816 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005079/0.01097, allocations: 257.6 kB / 0.8162 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.01102, allocations: 38.62 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.01103, allocations: 4 kB / 0.8162 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.01104, allocations: 5.344 kB / 0.8162 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.01116, allocations: 15.98 kB / 0.8163 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.01116, allocations: 4.062 kB / 0.8163 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.01134, allocations: 32.84 kB / 0.8163 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.01137, allocations: 11.98 kB / 0.8163 GB, free: 12.22 MB / 0.7761 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.0001512/0.01152, allocations: 174.8 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.01155, allocations: 15.89 kB / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.01182, allocations: 106.1 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.01183, allocations: 4 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.01183, allocations: 3.438 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.01184, allocations: 3.984 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004695/0.01231, allocations: 369.3 kB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01231, allocations: 0 / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.917e-05/0.01236, allocations: 8 kB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.01236, allocations: 0 / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.01237, allocations: 3.984 kB / 0.817 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.01237, allocations: 4 kB / 0.817 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01237, allocations: 4.719 kB / 0.817 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/0.01272, allocations: 263.7 kB / 0.8172 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.615e-05/0.01273, allocations: 12.45 kB / 0.8172 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.01275, allocations: 0.5625 kB / 0.8172 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.088e-05/0.01282, allocations: 4.562 kB / 0.8172 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.01287, allocations: 7.984 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.01287, allocations: 1.312 kB / 0.8172 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001117/0.01299, allocations: 143.2 kB / 0.8174 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01299, allocations: 0 / 0.8174 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002608/0.01325, allocations: 24.56 kB / 0.8174 GB, free: 11.02 MB / 0.7761 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.0001715/0.01342, allocations: 108.3 kB / 0.8175 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004197/0.01384, allocations: 216.7 kB / 0.8177 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01384, allocations: 0 / 0.8177 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.01396, allocations: 40.86 kB / 0.8178 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.01424, allocations: 23.83 kB / 0.8178 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.01466, allocations: 182.4 kB / 0.818 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.005e-05/0.01475, allocations: 75.31 kB / 0.818 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.768e-05/0.01478, allocations: 4 kB / 0.818 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.42e-05/0.01481, allocations: 12.5 kB / 0.818 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of SimCode: time 4.41e-07/0.01481, allocations: 0 / 0.818 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of Templates: time 0.005173/0.01999, allocations: 1.576 MB / 0.8196 GB, free: 8.781 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.045363306999207]