Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001235/0.001235, allocations: 99.62 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.001428/0.001429, allocations: 177.3 kB / 15.94 MB, free: 228 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.414/1.414, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004904/0.0004904, allocations: 8 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7723/0.7728, allocations: 142.3 MB / 0.9535 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.Scatter): time 0.002817/0.7757, allocations: 1.524 MB / 0.955 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009734/0.7767, allocations: 0.6144 MB / 0.9556 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.14e-05/0.7768, allocations: 4.875 kB / 0.9556 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.777, allocations: 15.48 kB / 0.9556 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.7774, allocations: 102 kB / 0.9557 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.7778, allocations: 155.2 kB / 0.9559 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.7781, allocations: 126.3 kB / 0.956 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.7783, allocations: 27.28 kB / 0.956 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.7785, allocations: 88.06 kB / 0.9561 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.7799, allocations: 0.7912 MB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.1e-05/0.7799, allocations: 7.156 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.44e-05/0.78, allocations: 14.78 kB / 0.9569 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.478e-05/0.7801, allocations: 31.95 kB / 0.9569 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.284e-05/0.7802, allocations: 53.02 kB / 0.957 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001781/0.7804, allocations: 145.2 kB / 0.9571 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.892e-05/0.7804, allocations: 0 / 0.9571 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.026e-06/0.7804, allocations: 4 kB / 0.9571 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.7804, allocations: 1.125 kB / 0.9571 GB, free: 5.527 MB / 0.7169 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.0006605/0.7811, allocations: 0.4945 MB / 0.9576 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.7811, allocations: 8.969 kB / 0.9576 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.507e-05/0.7812, allocations: 18.56 kB / 0.9576 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.7815, allocations: 241.1 kB / 0.9578 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.7815, allocations: 14.69 kB / 0.9579 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.7815, allocations: 19.64 kB / 0.9579 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.7817, allocations: 93.78 kB / 0.958 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.7817, allocations: 3.953 kB / 0.958 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.7817, allocations: 5.375 kB / 0.958 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.7818, allocations: 2.75 kB / 0.958 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.7819, allocations: 49.41 kB / 0.958 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007759/0.7826, allocations: 0.4887 MB / 0.9585 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.7828, allocations: 74.28 kB / 0.9586 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.7828, allocations: 1.156 kB / 0.9586 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.783, allocations: 113.3 kB / 0.9587 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.783, allocations: 0 / 0.9587 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003222/0.7834, allocations: 138.4 kB / 0.9588 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.7834, allocations: 61.59 kB / 0.9589 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.7836, allocations: 192.6 kB / 0.9591 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.7836, allocations: 33.11 kB / 0.9591 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/0.7837, allocations: 126.1 kB / 0.9592 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.7837, allocations: 32.09 kB / 0.9592 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.7837, allocations: 1.156 kB / 0.9592 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.037e-05/0.7838, allocations: 334.1 kB / 0.9596 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.408e-05/0.7839, allocations: 29.33 kB / 0.9596 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.784, allocations: 126.2 kB / 0.9597 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.061e-05/0.7841, allocations: 35.41 kB / 0.9597 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.7841, allocations: 5.062 kB / 0.9597 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002388/0.7844, allocations: 144.4 kB / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.7844, allocations: 4.969 kB / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.7844, allocations: 1.875 kB / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.7844, allocations: 1.906 kB / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.7845, allocations: 21.61 kB / 0.9599 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.7846, allocations: 9.859 kB / 0.9599 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.7848, allocations: 24.48 kB / 0.9599 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.7848, allocations: 9.719 kB / 0.9599 GB, free: 3 MB / 0.7169 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.0001082/0.7849, allocations: 137.6 kB / 0.9601 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.7849, allocations: 15.84 kB / 0.9601 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.7852, allocations: 128.2 kB / 0.9602 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.7852, allocations: 1.375 kB / 0.9602 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.7852, allocations: 1.375 kB / 0.9602 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.7852, allocations: 8.156 kB / 0.9602 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.7856, allocations: 461.8 kB / 0.9607 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.7857, allocations: 3.938 kB / 0.9607 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.646e-05/0.7857, allocations: 9.984 kB / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.7857, allocations: 1 kB / 0.9607 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.7857, allocations: 8.984 kB / 0.9607 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.7857, allocations: 1.219 kB / 0.9607 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7857, allocations: 4 kB / 0.9607 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/0.7859, allocations: 216.9 kB / 0.9609 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.786, allocations: 104 kB / 0.961 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.786, allocations: 5.094 kB / 0.961 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.7861, allocations: 16 kB / 0.961 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.914e-05/0.7862, allocations: 18.94 kB / 0.961 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.7862, allocations: 10.09 kB / 0.961 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.543e-05/0.7863, allocations: 135.5 kB / 0.9612 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7863, allocations: 0 / 0.9612 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003044/0.7866, allocations: 40.09 kB / 0.9612 GB, free: 1.918 MB / 0.7169 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.0003309/0.787, allocations: 165.5 kB / 0.9614 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002003/0.7872, allocations: 90.69 kB / 0.9615 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.7872, allocations: 0 / 0.9615 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.78e-05/0.7873, allocations: 47.97 kB / 0.9615 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.7876, allocations: 43.22 kB / 0.9615 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005425/0.7881, allocations: 342 kB / 0.9619 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.7883, allocations: 0.7208 MB / 0.9626 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.866e-05/0.7883, allocations: 28.16 kB / 0.9626 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.254e-05/0.7884, allocations: 18.53 kB / 0.9626 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7884, allocations: 0 / 0.9626 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of Templates: time 0.007338/0.7958, allocations: 2.999 MB / 0.9656 GB, free: 15.21 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.makefile (rm -f Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.pipe ; mkfifo Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.pipe >> ../files/Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.sim & ./Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Plotters_Examples_Scatter.csv","../files/Buildings_9_Buildings.Utilities.Plotters.Examples.Scatter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches