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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.002155/0.002156, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.002093/0.002094, allocations: 195.9 kB / 16.91 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.6 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 469.4 MB / 0.7423 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001245, allocations: 65.27 kB / 0.9083 GB, free: 34.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3602, allocations: 159.1 MB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.Scatter): time 0.0036/0.3638, allocations: 1.93 MB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.3651, allocations: 0.6317 MB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.97e-05/0.3652, allocations: 4 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.3655, allocations: 19.8 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003741/0.3659, allocations: 103.6 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.3662, allocations: 141.8 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00027/0.3665, allocations: 223.4 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.3667, allocations: 33.55 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001291/0.3668, allocations: 111.7 kB / 1.067 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009533/0.3763, allocations: 0.7967 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.229e-05/0.3764, allocations: 16 kB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.3766, allocations: 39.94 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.759e-05/0.3767, allocations: 43.83 kB / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.3768, allocations: 87.56 kB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.3772, allocations: 143.7 kB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3772, allocations: 0 / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3772, allocations: 0 / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.3772, allocations: 0 / 1.068 GB, free: 10.75 MB / 0.8262 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.0009225/0.3781, allocations: 0.5451 MB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3782, allocations: 8.031 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.3783, allocations: 20.75 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.3786, allocations: 248.5 kB / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.3786, allocations: 8 kB / 1.069 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.3787, allocations: 12 kB / 1.069 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3789, allocations: 101.6 kB / 1.069 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3789, allocations: 3.984 kB / 1.069 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.379, allocations: 3.984 kB / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.379, allocations: 7.938 kB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.3791, allocations: 51.97 kB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008929/0.38, allocations: 472.4 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.3802, allocations: 74.5 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.589e-05/0.3802, allocations: 32.84 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3803, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.3804, allocations: 110.5 kB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.3805, allocations: 0 / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0003513/0.3808, allocations: 145.6 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.3809, allocations: 63.39 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.3811, allocations: 187.4 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.835e-05/0.3811, allocations: 33.7 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3812, allocations: 128.3 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.3813, allocations: 31.56 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.136e-05/0.3814, allocations: 61.67 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3815, allocations: 326.8 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.148e-05/0.3816, allocations: 27.98 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.3818, allocations: 128.5 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.382, allocations: 101.1 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.382, allocations: 0 / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002723/0.3823, allocations: 152.4 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3823, allocations: 4 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3823, allocations: 4 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3823, allocations: 3.938 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3824, allocations: 27.92 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3824, allocations: 0 / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.3826, allocations: 27.83 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.3827, allocations: 4 kB / 1.071 GB, free: 7.363 MB / 0.8262 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 (sca1.sampleTrigger,sca1.tActivateLast,$PRE.sca1.tActivateLast,sca1.active,sca.sampleTrigger,sca.tActivateLast,$PRE.sca.tActivateLast,sca.active,plotConfiguration.tActivateLast,$PRE.plotConfiguration.tActivateLast,plotConfiguration.active,$whenCondition1,$whenCondition2,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.3828, allocations: 137.9 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.3829, allocations: 19.8 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.3831, allocations: 127.3 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3831, allocations: 4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3831, allocations: 3.938 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3831, allocations: 3.984 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006091/0.3838, allocations: 454.2 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3838, allocations: 4 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.576e-05/0.3838, allocations: 11.98 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.3838, allocations: 0 / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3839, allocations: 3.938 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3839, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3839, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.3841, allocations: 219.3 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3842, allocations: 104.9 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.3843, allocations: 8 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3844, allocations: 7.984 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.3845, allocations: 15.98 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.3845, allocations: 4 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001313/0.3846, allocations: 135.2 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3846, allocations: 0 / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003295/0.385, allocations: 44 kB / 1.072 GB, free: 5.977 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004075/0.3854, allocations: 176.2 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002695/0.3857, allocations: 95.89 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3857, allocations: 4 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.635e-05/0.3858, allocations: 50.92 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.3862, allocations: 45.81 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007291/0.3869, allocations: 380.8 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3872, allocations: 0.7202 MB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.08e-05/0.3873, allocations: 27.36 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3873, allocations: 0 / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of Templates: time 0.006504/0.3938, allocations: 3.021 MB / 1.077 GB, free: 1.453 MB / 0.8262 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Plotters.Examples.Scatter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches