Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.443/2.443, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 187.4 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.736/1.736, allocations: 223.2 MB / 0.7948 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009934/0.0009932, allocations: 94.97 kB / 0.9346 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003764, allocations: 13.62 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2702, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.18/0.4502, allocations: 149.2 MB / 1.369 GB, free: 12.88 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4505, allocations: 71.95 kB / 1.369 GB, free: 12.81 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003304/0.4538, allocations: 1.109 MB / 1.37 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4539, allocations: 0 / 1.37 GB, free: 11.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.4539, allocations: 0 / 1.37 GB, free: 11.7 MB / 0.8698 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.0004765/0.4543, allocations: 367.2 kB / 1.37 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.4544, allocations: 8.031 kB / 1.37 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.4544, allocations: 7.906 kB / 1.37 GB, free: 11.28 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.4546, allocations: 171 kB / 1.37 GB, free: 11.07 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.4546, allocations: 8 kB / 1.37 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.4546, allocations: 4 kB / 1.37 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.4548, allocations: 73.59 kB / 1.37 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4548, allocations: 0 / 1.37 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.4549, allocations: 7.875 kB / 1.37 GB, free: 10.97 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.4549, allocations: 0 / 1.37 GB, free: 10.97 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.4551, allocations: 55.95 kB / 1.37 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004322/0.4555, allocations: 272.8 kB / 1.371 GB, free: 10.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.4557, allocations: 70.48 kB / 1.371 GB, free: 10.52 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.4557, allocations: 3.984 kB / 1.371 GB, free: 10.52 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.4559, allocations: 71.52 kB / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.4559, allocations: 0 / 1.371 GB, free: 10.44 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0004104/0.4564, allocations: 137.5 kB / 1.371 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.4564, allocations: 63.3 kB / 1.371 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.541e-05/0.4565, allocations: 96.98 kB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.4565, allocations: 29.7 kB / 1.371 GB, free: 10.09 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.626e-05/0.4566, allocations: 88.14 kB / 1.371 GB, free: 9.996 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.4566, allocations: 19.86 kB / 1.371 GB, free: 9.977 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-06/0.4566, allocations: 4 kB / 1.371 GB, free: 9.973 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.4567, allocations: 310.8 kB / 1.372 GB, free: 9.66 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.4568, allocations: 31.97 kB / 1.372 GB, free: 9.629 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.457, allocations: 55.42 kB / 1.372 GB, free: 9.562 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.4571, allocations: 31.97 kB / 1.372 GB, free: 9.531 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4571, allocations: 0 / 1.372 GB, free: 9.531 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002503/0.4573, allocations: 117.4 kB / 1.372 GB, free: 9.41 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4574, allocations: 7.984 kB / 1.372 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.4574, allocations: 0.5 kB / 1.372 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4574, allocations: 4 kB / 1.372 GB, free: 9.398 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.4575, allocations: 24.08 kB / 1.372 GB, free: 9.375 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4575, allocations: 4.141 kB / 1.372 GB, free: 9.371 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.416e-05/0.4576, allocations: 15.95 kB / 1.372 GB, free: 9.355 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.4576, allocations: 4 kB / 1.372 GB, free: 9.352 MB / 0.8698 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.623e-05/0.4577, allocations: 117.8 kB / 1.372 GB, free: 9.227 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.4577, allocations: 0 / 1.372 GB, free: 9.227 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002825/0.458, allocations: 118 kB / 1.372 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.458, allocations: 0 / 1.372 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.458, allocations: 4 kB / 1.372 GB, free: 9.098 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.458, allocations: 0 / 1.372 GB, free: 9.098 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003932/0.4584, allocations: 370.3 kB / 1.372 GB, free: 8.68 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4585, allocations: 4 kB / 1.372 GB, free: 8.676 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.525e-05/0.4585, allocations: 15.92 kB / 1.372 GB, free: 8.66 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4585, allocations: 0 / 1.372 GB, free: 8.66 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.4585, allocations: 4 kB / 1.372 GB, free: 8.656 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4586, allocations: 0 / 1.372 GB, free: 8.656 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4586, allocations: 7.953 kB / 1.372 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.4588, allocations: 203.5 kB / 1.373 GB, free: 8.434 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.921e-05/0.4589, allocations: 84.95 kB / 1.373 GB, free: 8.332 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.4589, allocations: 8 kB / 1.373 GB, free: 8.324 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.459, allocations: 11.98 kB / 1.373 GB, free: 8.312 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.459, allocations: 3.938 kB / 1.373 GB, free: 8.309 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.4591, allocations: 7.953 kB / 1.373 GB, free: 8.301 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.654e-05/0.4591, allocations: 91.45 kB / 1.373 GB, free: 8.211 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.4591, allocations: 0 / 1.373 GB, free: 8.211 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002301/0.4593, allocations: 16 kB / 1.373 GB, free: 8.195 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001356/0.4595, allocations: 115 kB / 1.373 GB, free: 8.074 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.4597, allocations: 71.89 kB / 1.373 GB, free: 8.004 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4597, allocations: 0 / 1.373 GB, free: 8.004 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.4599, allocations: 40.17 kB / 1.373 GB, free: 7.965 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.46, allocations: 7.984 kB / 1.373 GB, free: 7.957 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.4603, allocations: 140.6 kB / 1.373 GB, free: 7.793 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.4606, allocations: 0.6887 MB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.132e-05/0.4606, allocations: 4.188 kB / 1.374 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.4606, allocations: 11.44 kB / 1.374 GB, free: 7.059 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.4607, allocations: 0 / 1.374 GB, free: 7.059 MB / 0.8698 GB Notification: Performance of Templates: time 0.002528/0.4632, allocations: 0.6641 MB / 1.375 GB, free: 6.406 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches