Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.372/2.372, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001533/0.001533, allocations: 190.2 kB / 0.4902 GB, free: 2.223 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.604/1.604, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001066/0.001066, allocations: 109.2 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003916, allocations: 8.969 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3341, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1896/0.5237, allocations: 150 MB / 1.376 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.524, allocations: 67.95 kB / 1.376 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.003537/0.5275, allocations: 1.112 MB / 1.377 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.124e-06/0.5276, allocations: 4 kB / 1.377 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.5276, allocations: 0 / 1.377 GB, free: 14.06 MB / 0.8855 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.0005336/0.5281, allocations: 363.2 kB / 1.377 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.5282, allocations: 8.031 kB / 1.377 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.5282, allocations: 4 kB / 1.377 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.5283, allocations: 170.9 kB / 1.377 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.5284, allocations: 8 kB / 1.377 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.5284, allocations: 0 / 1.377 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.5286, allocations: 69.66 kB / 1.377 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.5287, allocations: 0 / 1.377 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.5287, allocations: 0 / 1.377 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.5287, allocations: 0 / 1.377 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.5289, allocations: 55.95 kB / 1.378 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.5294, allocations: 284.7 kB / 1.378 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.5296, allocations: 66.53 kB / 1.378 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.5296, allocations: 4.062 kB / 1.378 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.5299, allocations: 71.52 kB / 1.378 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 3.737e-06/0.5299, allocations: 4 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0004831/0.5304, allocations: 141.4 kB / 1.378 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.5305, allocations: 63.36 kB / 1.378 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.271e-05/0.5306, allocations: 96.98 kB / 1.378 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.5306, allocations: 29.7 kB / 1.378 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.5307, allocations: 84.14 kB / 1.378 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.5307, allocations: 15.8 kB / 1.378 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-06/0.5307, allocations: 4 kB / 1.378 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.5308, allocations: 314.8 kB / 1.379 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.5309, allocations: 35.91 kB / 1.379 GB, free: 12 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.5311, allocations: 55.41 kB / 1.379 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.5312, allocations: 39.97 kB / 1.379 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5312, allocations: 3.938 kB / 1.379 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002763/0.5315, allocations: 109.6 kB / 1.379 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.5315, allocations: 4.094 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.5315, allocations: 4 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.5315, allocations: 4 kB / 1.379 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.5317, allocations: 15.98 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.5317, allocations: 0 / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.016e-05/0.5318, allocations: 15.86 kB / 1.379 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.5318, allocations: 7.984 kB / 1.379 GB, free: 11.73 MB / 0.8855 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 0.0001005/0.5319, allocations: 122.5 kB / 1.379 GB, free: 11.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.5319, allocations: 4 kB / 1.379 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003153/0.5323, allocations: 114.5 kB / 1.379 GB, free: 11.47 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5323, allocations: 0 / 1.379 GB, free: 11.47 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.5323, allocations: 4.062 kB / 1.379 GB, free: 11.47 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.5323, allocations: 8 kB / 1.379 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.5328, allocations: 358.5 kB / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.5328, allocations: 0 / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.548e-05/0.5329, allocations: 19.98 kB / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.5329, allocations: 0 / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.5329, allocations: 0 / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.5329, allocations: 0 / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5329, allocations: 3.953 kB / 1.38 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.5332, allocations: 211.3 kB / 1.38 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.5333, allocations: 77.11 kB / 1.38 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.5333, allocations: 4 kB / 1.38 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5334, allocations: 15.92 kB / 1.38 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.5335, allocations: 4 kB / 1.38 GB, free: 10.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.5335, allocations: 11.94 kB / 1.38 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.851e-05/0.5336, allocations: 79.28 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5336, allocations: 4 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002501/0.5338, allocations: 20 kB / 1.38 GB, free: 10.58 MB / 0.8855 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.0001907/0.534, allocations: 107.2 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002813/0.5343, allocations: 75.89 kB / 1.38 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5343, allocations: 4 kB / 1.38 GB, free: 10.39 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.5344, allocations: 31.97 kB / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001825/0.5346, allocations: 12.8 kB / 1.38 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.535, allocations: 153.1 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.5353, allocations: 0.6848 MB / 1.381 GB, free: 9.453 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.913e-05/0.5354, allocations: 4.188 kB / 1.381 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.5354, allocations: 11.44 kB / 1.381 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of SimCode: time 3.61e-07/0.5354, allocations: 0 / 1.381 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of Templates: time 0.002899/0.5383, allocations: 0.6586 MB / 1.382 GB, free: 8.785 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches