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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001574/0.001574, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001606/0.001607, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.513/2.513, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 68.27 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3381, allocations: 151.6 MB / 1.019 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002071/0.3402, allocations: 0.6753 MB / 1.019 GB, free: 9.184 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.3415, allocations: 1.056 MB / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.3416, allocations: 0 / 1.02 GB, free: 8.113 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.958e-05/0.3416, allocations: 3.938 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.469e-05/0.3417, allocations: 3.938 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.3419, allocations: 43.89 kB / 1.021 GB, free: 8.062 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.447e-05/0.342, allocations: 47.84 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.965e-05/0.3421, allocations: 16 kB / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.3e-05/0.3422, allocations: 15.92 kB / 1.021 GB, free: 7.984 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.289e-05/0.3423, allocations: 23.91 kB / 1.021 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.3423, allocations: 4 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.254e-05/0.3424, allocations: 19.98 kB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.3424, allocations: 11.92 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.891e-05/0.3424, allocations: 19.92 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.3426, allocations: 59.84 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3426, allocations: 3.938 kB / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3426, allocations: 0 / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3426, allocations: 0 / 1.021 GB, free: 7.844 MB / 0.795 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.0006006/0.3432, allocations: 367.2 kB / 1.021 GB, free: 7.434 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3433, allocations: 12.62 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.3433, allocations: 0.9375 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3434, allocations: 172.3 kB / 1.021 GB, free: 7.215 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.3434, allocations: 12.3 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.3435, allocations: 4.375 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.3437, allocations: 58.23 kB / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3437, allocations: 192 / 1.021 GB, free: 7.137 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.3437, allocations: 3.938 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3437, allocations: 7.984 kB / 1.021 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.3439, allocations: 39.89 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004798/0.3444, allocations: 284.8 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.3445, allocations: 58.48 kB / 1.022 GB, free: 6.691 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.3447, allocations: 28.97 kB / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.3447, allocations: 0 / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.3449, allocations: 79.31 kB / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3449, allocations: 0 / 1.022 GB, free: 6.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0003975/0.3453, allocations: 121.5 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.3454, allocations: 51.41 kB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.904e-05/0.3455, allocations: 105.8 kB / 1.022 GB, free: 6.27 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.3455, allocations: 33.7 kB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.162e-05/0.3455, allocations: 84.14 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.3456, allocations: 15.8 kB / 1.022 GB, free: 6.129 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.3456, allocations: 21.72 kB / 1.022 GB, free: 6.102 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3457, allocations: 318.8 kB / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.114e-05/0.3458, allocations: 19.98 kB / 1.023 GB, free: 5.762 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.3459, allocations: 55.34 kB / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.3461, allocations: 83.27 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3461, allocations: 0 / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002448/0.3464, allocations: 101.6 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3464, allocations: 4 kB / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3464, allocations: 3.984 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3464, allocations: 4 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.3466, allocations: 16.48 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3466, allocations: 4 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.3466, allocations: 8 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.3467, allocations: 11.94 kB / 1.023 GB, free: 5.445 MB / 0.795 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 8.407e-05/0.3468, allocations: 130.3 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.3468, allocations: 4 kB / 1.023 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.347, allocations: 102 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.347, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3471, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3471, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.3475, allocations: 358.5 kB / 1.023 GB, free: 4.793 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3475, allocations: 4 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.57e-05/0.3476, allocations: 7.984 kB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3476, allocations: 3.938 kB / 1.023 GB, free: 4.777 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.3476, allocations: 4 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3476, allocations: 0 / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3476, allocations: 0 / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000264/0.3479, allocations: 203.3 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.99e-05/0.3479, allocations: 81.11 kB / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.3479, allocations: 0 / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.641e-05/0.348, allocations: 7.984 kB / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.68e-05/0.3481, allocations: 8 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.3481, allocations: 3.984 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.666e-05/0.3482, allocations: 91.45 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3482, allocations: 0 / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002479/0.3484, allocations: 15.91 kB / 1.024 GB, free: 4.336 MB / 0.795 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.0001475/0.3486, allocations: 103.2 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002666/0.3488, allocations: 72.06 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3489, allocations: 192 / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.349, allocations: 35.98 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.3492, allocations: 15.92 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000324/0.3496, allocations: 126.2 kB / 1.024 GB, free: 3.953 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3499, allocations: 0.6846 MB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.162e-05/0.3499, allocations: 4 kB / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.39e-05/0.3499, allocations: 11.44 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of SimCode: time 2.11e-07/0.3499, allocations: 0 / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of Templates: time 0.003388/0.3533, allocations: 0.7874 MB / 1.026 GB, free: 2.449 MB / 0.795 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 -s gbode -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/jenkins1/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