Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001964/0.001963, allocations: 193.6 kB / 16.14 MB, free: 6.684 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.615/1.615, allocations: 222.9 MB / 239.8 MB, free: 4.645 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.897/2.897, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002709/0.00271, allocations: 63.91 kB / 0.8686 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9561/0.9589, allocations: 151.6 MB / 1.017 GB, free: 2.824 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002448/0.9614, allocations: 0.7321 MB / 1.017 GB, free: 2.098 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001675/0.9631, allocations: 1.05 MB / 1.018 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.56e-05/0.9632, allocations: 4 kB / 1.018 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.553e-05/0.9632, allocations: 0 / 1.018 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.329e-05/0.9633, allocations: 7.938 kB / 1.018 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.9636, allocations: 31.91 kB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.995e-05/0.9637, allocations: 47.84 kB / 1.018 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.9638, allocations: 8 kB / 1.018 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.995e-05/0.9639, allocations: 27.84 kB / 1.018 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.071e-05/0.964, allocations: 15.92 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.964, allocations: 4 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.83e-05/0.9641, allocations: 15.98 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.57e-05/0.9641, allocations: 11.98 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.9641, allocations: 23.86 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.9643, allocations: 51.84 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.9643, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.72e-07/0.9643, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.9643, allocations: 0 / 1.019 GB, free: 0.7852 MB / 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.0007461/0.9651, allocations: 373.2 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.9651, allocations: 8.031 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.9652, allocations: 8.938 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.9654, allocations: 172.3 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.9654, allocations: 384 / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.9654, allocations: 8.375 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.9656, allocations: 58.22 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.9656, allocations: 4.188 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.9656, allocations: 3.938 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.9657, allocations: 0 / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.9659, allocations: 47.95 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.9664, allocations: 272.8 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.9666, allocations: 58.48 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.9667, allocations: 28.97 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.9668, allocations: 11.98 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.967, allocations: 75.33 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.967, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0004671/0.9675, allocations: 117.5 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.9676, allocations: 59.41 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.924e-05/0.9677, allocations: 101.8 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.9677, allocations: 29.7 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/0.9678, allocations: 88.08 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.9678, allocations: 23.73 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.702e-05/0.9679, allocations: 17.72 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.9681, allocations: 314.8 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.9682, allocations: 23.98 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.9683, allocations: 59.42 kB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.9685, allocations: 83.33 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.9685, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000273/0.9688, allocations: 97.53 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.9688, allocations: 10.64 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.9689, allocations: 4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.9689, allocations: 3.938 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.969, allocations: 15.98 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.969, allocations: 4.094 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.308e-05/0.9691, allocations: 11.91 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.9691, allocations: 4 kB / 1.021 GB, free: 14.38 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: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001231/0.9693, allocations: 126.2 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.9693, allocations: 0 / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/0.9696, allocations: 106 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.9696, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.9696, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.9696, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005264/0.9702, allocations: 351 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9702, allocations: 0 / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.829e-05/0.9703, allocations: 16.09 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.9703, allocations: 3.984 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.9703, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.9703, allocations: 4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.9703, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.9706, allocations: 203.3 kB / 1.021 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.9707, allocations: 81.05 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.9707, allocations: 0 / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.9708, allocations: 7.984 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.9709, allocations: 8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.9709, allocations: 11.94 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.29e-05/0.971, allocations: 83.27 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.971, allocations: 3.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002431/0.9712, allocations: 16 kB / 1.022 GB, free: 13.27 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001934/0.9714, allocations: 99.25 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002833/0.9717, allocations: 71.88 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9717, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.9719, allocations: 27.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.9722, allocations: 7.984 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003972/0.9726, allocations: 155.9 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.9729, allocations: 0.6848 MB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.14e-05/0.973, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.973, allocations: 15.38 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.973, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of Templates: time 0.003745/0.9767, allocations: 0.7058 MB / 1.023 GB, free: 11.46 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches