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.168/2.168, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.0011/0.0011, allocations: 176.9 kB / 487.4 MB, free: 5.039 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.541/1.541, allocations: 221.5 MB / 0.7824 GB, free: 1.02 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009058/0.0009058, allocations: 95.03 kB / 0.9219 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.427e-06/9.448e-06, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3817, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.438, allocations: 148.5 MB / 1.351 GB, free: 18.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/1.438, allocations: 68.02 kB / 1.351 GB, free: 18.3 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004117/1.442, allocations: 1.099 MB / 1.352 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.976e-06/1.442, allocations: 0 / 1.352 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.256e-06/1.442, allocations: 1.312 kB / 1.352 GB, free: 33.95 MB / 0.8386 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.0004821/1.443, allocations: 358.1 kB / 1.352 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/1.443, allocations: 13.53 kB / 1.352 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/1.443, allocations: 6.438 kB / 1.352 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/1.443, allocations: 174.2 kB / 1.353 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/1.443, allocations: 1.312 kB / 1.353 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/1.443, allocations: 3.297 kB / 1.353 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.549e-05/1.443, allocations: 14.5 kB / 1.353 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.108e-05/1.443, allocations: 47.56 kB / 1.353 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.443, allocations: 5.188 kB / 1.353 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/1.443, allocations: 0.6562 kB / 1.353 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/1.443, allocations: 3.219 kB / 1.353 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004045/1.444, allocations: 257.1 kB / 1.353 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.675e-05/1.444, allocations: 41.33 kB / 1.353 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.137e-05/1.444, allocations: 16.11 kB / 1.353 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/1.444, allocations: 5.969 kB / 1.353 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.86e-05/1.444, allocations: 64.19 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/1.444, allocations: 1.312 kB / 1.353 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001761/1.444, allocations: 72 kB / 1.353 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/1.444, allocations: 51.41 kB / 1.353 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.724e-05/1.444, allocations: 94.31 kB / 1.353 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/1.444, allocations: 29.58 kB / 1.353 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.64e-05/1.444, allocations: 93.12 kB / 1.353 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/1.444, allocations: 12.92 kB / 1.353 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-06/1.444, allocations: 0 / 1.353 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000113/1.445, allocations: 319.5 kB / 1.354 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.522e-05/1.445, allocations: 11.59 kB / 1.354 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.121e-05/1.445, allocations: 33.48 kB / 1.354 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/1.445, allocations: 28.09 kB / 1.354 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/1.445, allocations: 0.75 kB / 1.354 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001724/1.445, allocations: 82.89 kB / 1.354 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/1.445, allocations: 7.688 kB / 1.354 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/1.445, allocations: 0 / 1.354 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/1.445, allocations: 3.906 kB / 1.354 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/1.445, allocations: 25.3 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/1.445, allocations: 0 / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.882e-05/1.445, allocations: 10.56 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/1.445, allocations: 3.812 kB / 1.354 GB, free: 32.3 MB / 0.8386 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 () * 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.541e-05/1.445, allocations: 109.9 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/1.445, allocations: 8.531 kB / 1.354 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/1.445, allocations: 74.66 kB / 1.354 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/1.445, allocations: 4 kB / 1.354 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/1.446, allocations: 3.969 kB / 1.354 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.446, allocations: 4.641 kB / 1.354 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/1.446, allocations: 304.9 kB / 1.354 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/1.446, allocations: 0 / 1.354 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/1.446, allocations: 18.53 kB / 1.354 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/1.446, allocations: 0.7969 kB / 1.354 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/1.446, allocations: 0 / 1.354 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/1.446, allocations: 0.7031 kB / 1.354 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/1.446, allocations: 4 kB / 1.354 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/1.446, allocations: 166.2 kB / 1.355 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/1.446, allocations: 85.66 kB / 1.355 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/1.446, allocations: 0.6562 kB / 1.355 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/1.446, allocations: 14.44 kB / 1.355 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/1.446, allocations: 5.344 kB / 1.355 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/1.446, allocations: 4.562 kB / 1.355 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.677e-05/1.446, allocations: 84.94 kB / 1.355 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.446, allocations: 3.938 kB / 1.355 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002227/1.447, allocations: 16.27 kB / 1.355 GB, free: 31.55 MB / 0.8386 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 () * 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.0001417/1.447, allocations: 112.7 kB / 1.355 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.482e-05/1.447, allocations: 30.95 kB / 1.355 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/1.447, allocations: 0 / 1.355 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.895e-05/1.447, allocations: 27.2 kB / 1.355 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/1.447, allocations: 15.06 kB / 1.355 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002233/1.447, allocations: 75.36 kB / 1.355 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/1.448, allocations: 0.6868 MB / 1.356 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.292e-05/1.448, allocations: 4.922 kB / 1.356 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.212e-05/1.448, allocations: 11.73 kB / 1.356 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.448, allocations: 0 / 1.356 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of Templates: time 0.002601/1.45, allocations: 0.6281 MB / 1.356 GB, free: 30.61 MB / 0.8386 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