Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.417/1.417, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 184.2 kB / 326.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.4 MB / 0.5775 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008262/0.0008262, allocations: 90.53 kB / 0.6821 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 11.78 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2339, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1767/0.4107, allocations: 131.7 MB / 1.029 GB, free: 12.04 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.4109, allocations: 71.95 kB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002348/0.4133, allocations: 0.8722 MB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4133, allocations: 0 / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.4133, allocations: 0 / 1.03 GB, free: 11.09 MB / 0.6823 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.0004393/0.4138, allocations: 367.2 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.4138, allocations: 8.031 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.4139, allocations: 11.89 kB / 1.03 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.414, allocations: 167 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.414, allocations: 4 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.414, allocations: 0 / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.4142, allocations: 77.59 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.4142, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.4142, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.4142, allocations: 3.938 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.4144, allocations: 55.95 kB / 1.03 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.4148, allocations: 280.8 kB / 1.031 GB, free: 9.992 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/0.415, allocations: 58.48 kB / 1.031 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.415, allocations: 8 kB / 1.031 GB, free: 9.918 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.4152, allocations: 75.5 kB / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.4152, allocations: 0 / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0003935/0.4156, allocations: 133.6 kB / 1.031 GB, free: 9.695 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.4157, allocations: 55.41 kB / 1.031 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.917e-05/0.4157, allocations: 104.9 kB / 1.031 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.4158, allocations: 25.7 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.4158, allocations: 92.03 kB / 1.031 GB, free: 9.395 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.4158, allocations: 11.91 kB / 1.031 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.4158, allocations: 0 / 1.031 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.416, allocations: 322.8 kB / 1.031 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-05/0.4161, allocations: 27.97 kB / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.4162, allocations: 55.41 kB / 1.031 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.364e-05/0.4163, allocations: 31.98 kB / 1.031 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4163, allocations: 0 / 1.031 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002455/0.4166, allocations: 121.4 kB / 1.032 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.4166, allocations: 4 kB / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.4166, allocations: 0 / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.4166, allocations: 4 kB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.896e-05/0.4167, allocations: 20.08 kB / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.4167, allocations: 0 / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.4168, allocations: 15.88 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.4168, allocations: 4 kB / 1.032 GB, free: 8.762 MB / 0.6823 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.629e-05/0.4169, allocations: 121.8 kB / 1.032 GB, free: 8.633 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.4169, allocations: 4.406 kB / 1.032 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002792/0.4172, allocations: 118 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4172, allocations: 4.062 kB / 1.032 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4172, allocations: 4 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4172, allocations: 48 / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.4176, allocations: 370.5 kB / 1.032 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4177, allocations: 4 kB / 1.032 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.294e-05/0.4177, allocations: 15.98 kB / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4177, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.4178, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4178, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4178, allocations: 0 / 1.032 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.418, allocations: 207.5 kB / 1.032 GB, free: 7.848 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.4181, allocations: 85.02 kB / 1.033 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.4181, allocations: 3.938 kB / 1.033 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.4182, allocations: 16.66 kB / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.4183, allocations: 0 / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.4183, allocations: 4 kB / 1.033 GB, free: 7.723 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.897e-05/0.4183, allocations: 91.2 kB / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4183, allocations: 0 / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00021/0.4186, allocations: 15.95 kB / 1.033 GB, free: 7.617 MB / 0.6823 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.0001034/0.4187, allocations: 99.25 kB / 1.033 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002431/0.4189, allocations: 71.89 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4189, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.419, allocations: 44.16 kB / 1.033 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.4192, allocations: 6.062 kB / 1.033 GB, free: 7.391 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002855/0.4195, allocations: 141.1 kB / 1.033 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.4197, allocations: 0.6837 MB / 1.034 GB, free: 6.516 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.4198, allocations: 12.17 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.4198, allocations: 11.44 kB / 1.034 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of SimCode: time 3.11e-07/0.4198, allocations: 0 / 1.034 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of Templates: time 0.002198/0.422, allocations: 0.537 MB / 1.034 GB, free: 5.957 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches