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.001566/0.001566, 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.001869/0.001869, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.52/1.52, allocations: 222.9 MB / 239.8 MB, free: 4.605 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.634/2.634, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001315, allocations: 67.89 kB / 0.8686 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7833/0.7846, allocations: 151.6 MB / 1.017 GB, free: 2.844 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001974/0.7867, allocations: 0.7419 MB / 1.017 GB, free: 2.105 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.788, allocations: 1.039 MB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.05e-05/0.788, allocations: 3.938 kB / 1.018 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.694e-05/0.7881, allocations: 3.938 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.29e-05/0.7881, allocations: 7.922 kB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.7884, allocations: 35.97 kB / 1.018 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.244e-05/0.7885, allocations: 43.8 kB / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.7886, allocations: 19.97 kB / 1.018 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.312e-05/0.7887, allocations: 15.92 kB / 1.018 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.975e-05/0.7887, allocations: 19.92 kB / 1.018 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.7888, allocations: 4 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.403e-05/0.7888, allocations: 15.98 kB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.7889, allocations: 7.984 kB / 1.019 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.7889, allocations: 19.86 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.7891, allocations: 51.86 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7891, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.41e-07/0.7891, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.7891, allocations: 4 kB / 1.019 GB, free: 0.8008 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.0006119/0.7897, allocations: 369.3 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.7898, allocations: 8.031 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.421e-05/0.7898, allocations: 4.938 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.7899, allocations: 176.2 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.79, allocations: 4.375 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.79, allocations: 4.375 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.7902, allocations: 66.22 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.7902, allocations: 192 / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.7902, allocations: 3.938 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.7902, allocations: 0 / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.7904, allocations: 39.95 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.7909, allocations: 276.8 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.7911, allocations: 62.48 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.434e-05/0.7912, allocations: 28.97 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.7912, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.7915, allocations: 75.38 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.7915, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0004105/0.7919, allocations: 129.5 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.7919, allocations: 51.41 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.231e-05/0.792, allocations: 105.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.792, allocations: 29.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.751e-05/0.7921, allocations: 88.08 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.7921, allocations: 23.81 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.7922, allocations: 25.7 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.7923, allocations: 310.8 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.7924, allocations: 27.97 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.7925, allocations: 47.41 kB / 1.02 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.7927, allocations: 87.22 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.7927, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002657/0.793, allocations: 109.5 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.793, allocations: 4 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.793, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.793, allocations: 4 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.7931, allocations: 11.98 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.7931, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.51e-05/0.7932, allocations: 19.89 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.7932, allocations: 0 / 1.021 GB, free: 14.4 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 9.043e-05/0.7933, allocations: 128 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.7934, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002822/0.7936, allocations: 106 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.7937, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.7937, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.7937, allocations: 3.984 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004423/0.7941, allocations: 350.5 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.7941, allocations: 3.984 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.774e-05/0.7942, allocations: 8.625 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.7942, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.7942, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.7942, allocations: 7.984 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.7942, allocations: 4 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.7946, allocations: 195.4 kB / 1.021 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.7946, allocations: 81.05 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.7946, allocations: 7.984 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.7947, allocations: 8 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.7948, allocations: 11.92 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.7948, allocations: 3.938 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.298e-05/0.7949, allocations: 83.27 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7949, allocations: 7.938 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000252/0.7951, allocations: 16 kB / 1.022 GB, free: 13.29 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.0001417/0.7953, allocations: 107.2 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002518/0.7955, allocations: 63.89 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7956, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.7957, allocations: 32.16 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.796, allocations: 15.94 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003316/0.7963, allocations: 143.8 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.7966, allocations: 0.6832 MB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.613e-05/0.7966, allocations: 11.98 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.464e-05/0.7966, allocations: 11.44 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.7966, allocations: 0 / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of Templates: time 0.002949/0.7996, allocations: 0.7069 MB / 1.023 GB, free: 11.47 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=480 -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