Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Utilities.Plotters.Examples.Scatter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sca.y.1.|sca1.y.1.|sca1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter") translateModel(Buildings.Utilities.Plotters.Examples.Scatter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sca.y.1.|sca1.y.1.|sca1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001318/0.001318, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.765/2.765, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004255, allocations: 8 kB / 0.8707 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6945/0.6949, allocations: 153.7 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.Scatter): time 0.002098/0.697, allocations: 1.533 MB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.6981, allocations: 0.6009 MB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.314e-05/0.6982, allocations: 3.938 kB / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.6984, allocations: 23.84 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.6987, allocations: 103.7 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.699, allocations: 145.2 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.6992, allocations: 123.8 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.6994, allocations: 37.53 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.6995, allocations: 87.67 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.7006, allocations: 0.8038 MB / 1.024 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.7006, allocations: 8 kB / 1.024 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.195e-05/0.7007, allocations: 23.92 kB / 1.024 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.7008, allocations: 27.91 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.817e-05/0.7008, allocations: 53.58 kB / 1.024 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.701, allocations: 133.6 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.701, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7011, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.7011, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006876/0.7018, allocations: 0.5061 MB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.7018, allocations: 11.98 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.7019, allocations: 23.75 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.7022, allocations: 247.3 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.7022, allocations: 8.188 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.7022, allocations: 16 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.7024, allocations: 100.3 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.7024, allocations: 0 / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.7024, allocations: 8 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.7025, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.7026, allocations: 52.53 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.7034, allocations: 492.3 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.7035, allocations: 78.48 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.7035, allocations: 8 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001924/0.7037, allocations: 91.28 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.7038, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0002949/0.7041, allocations: 152.5 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.7041, allocations: 55.39 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.7043, allocations: 191.6 kB / 1.026 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.7043, allocations: 29.7 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.7044, allocations: 132.3 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.7045, allocations: 35.53 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.814e-06/0.7045, allocations: 4 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.7046, allocations: 322.8 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.521e-05/0.7047, allocations: 27.98 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.7049, allocations: 130.6 kB / 1.027 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.61e-05/0.705, allocations: 39.92 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.705, allocations: 0 / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002263/0.7052, allocations: 153.3 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.7053, allocations: 4 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.7053, allocations: 4.219 kB / 1.027 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7053, allocations: 4 kB / 1.027 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.951e-05/0.7054, allocations: 19.92 kB / 1.027 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.7054, allocations: 7.938 kB / 1.027 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.7056, allocations: 23.89 kB / 1.027 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.7057, allocations: 7.938 kB / 1.027 GB, free: 10.19 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$whenCondition1,plotConfiguration.active,$PRE.plotConfiguration.tActivateLast,plotConfiguration.tActivateLast,sca.active,$PRE.sca.tActivateLast,sca.tActivateLast,sca.sampleTrigger,sca1.active,$PRE.sca1.tActivateLast,sca1.tActivateLast,sca1.sampleTrigger,plotConfiguration.activate_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001294/0.7058, allocations: 141.9 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.403e-05/0.7058, allocations: 19.77 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.7061, allocations: 131.1 kB / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.7061, allocations: 0 / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.7061, allocations: 0 / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.7061, allocations: 0 / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005661/0.7067, allocations: 473.1 kB / 1.028 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.7067, allocations: 0 / 1.028 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.7067, allocations: 4 kB / 1.028 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.7067, allocations: 0 / 1.028 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.7067, allocations: 7.984 kB / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.7068, allocations: 0 / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.7068, allocations: 0 / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.707, allocations: 219.2 kB / 1.028 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.806e-05/0.7071, allocations: 108.8 kB / 1.028 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.7071, allocations: 0 / 1.028 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.7072, allocations: 11.98 kB / 1.028 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.7073, allocations: 15.98 kB / 1.028 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.7073, allocations: 11.98 kB / 1.028 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001131/0.7075, allocations: 132.3 kB / 1.028 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7075, allocations: 0 / 1.028 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003209/0.7078, allocations: 55.89 kB / 1.029 GB, free: 8.781 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (sca1.sampleTrigger,sca.sampleTrigger,plotConfiguration.active,$whenCondition3,$whenCondition2,$whenCondition1,plotConfiguration.tActivateLast,sca.active,sca.tActivateLast,sca1.active,sca1.tActivateLast) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000366/0.7082, allocations: 175.4 kB / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002187/0.7084, allocations: 87.84 kB / 1.029 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7084, allocations: 4 kB / 1.029 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.337e-05/0.7085, allocations: 35.98 kB / 1.029 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.7088, allocations: 40.89 kB / 1.029 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006307/0.7094, allocations: 340 kB / 1.029 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.7098, allocations: 0.7283 MB / 1.03 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.972e-05/0.7099, allocations: 17.55 kB / 1.03 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.964e-05/0.7099, allocations: 27.42 kB / 1.03 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of SimCode: time 5.21e-07/0.7099, allocations: 0 / 1.03 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of Templates: time 0.00663/0.7166, allocations: 3.002 MB / 1.033 GB, free: 4.332 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.makefile (rm -f Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.sim & ./Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Examples_Scatter.csv","../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches