Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.TimeSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timSer.y.1.|timSer.y.2.|timSer.y.3.|timSer1.y.1.|timSer1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries") translateModel(Buildings.Utilities.Plotters.Examples.TimeSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timSer.y.1.|timSer.y.2.|timSer.y.3.|timSer1.y.1.|timSer1.y.2.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002214/0.002214, allocations: 196.4 kB / 16.14 MB, free: 6.711 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.475/1.475, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.812/2.812, allocations: 472.7 MB / 0.7447 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 62.75 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4119, allocations: 159.9 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.004465/0.4164, allocations: 1.922 MB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001583/0.418, allocations: 0.6859 MB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.4182, allocations: 0 / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.4185, allocations: 19.86 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.419, allocations: 95.59 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004794/0.4195, allocations: 139.8 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003316/0.4198, allocations: 231.4 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.42, allocations: 41.64 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.4202, allocations: 95.62 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01418/0.4344, allocations: 0.9773 MB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.4345, allocations: 8 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.4347, allocations: 31.98 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.4349, allocations: 39.89 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.435, allocations: 87.45 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.4355, allocations: 203.3 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4355, allocations: 8 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.042e-06/0.4355, allocations: 0 / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.4355, allocations: 0 / 1.072 GB, free: 6.488 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001257/0.4368, allocations: 0.5603 MB / 1.073 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.4369, allocations: 8.031 kB / 1.073 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.437, allocations: 24.69 kB / 1.073 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.4374, allocations: 242 kB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.4374, allocations: 12.36 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.4375, allocations: 20.12 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.4377, allocations: 119.8 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4378, allocations: 0 / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.4378, allocations: 0 / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.4378, allocations: 4 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.4379, allocations: 59.91 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.439, allocations: 0.4884 MB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.4394, allocations: 106.7 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.278e-05/0.4395, allocations: 36.84 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.4395, allocations: 8 kB / 1.074 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/0.4397, allocations: 107.2 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.854e-06/0.4397, allocations: 0 / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004009/0.4402, allocations: 172.5 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.4402, allocations: 63.39 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.4406, allocations: 203.6 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.4406, allocations: 37.7 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.4407, allocations: 128.4 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.4408, allocations: 35.56 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.4409, allocations: 61.67 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4411, allocations: 330.8 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.4413, allocations: 63.95 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.4416, allocations: 131.6 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.4419, allocations: 207.9 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.4419, allocations: 4 kB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007703/0.4427, allocations: 340.5 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.651e-05/0.4428, allocations: 68.95 kB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4428, allocations: 3.938 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.4428, allocations: 4 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.4429, allocations: 19.92 kB / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.443, allocations: 4 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.4432, allocations: 27.83 kB / 1.076 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.4432, allocations: 12.16 kB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 19 (timSer1.timeConverted,$PRE.timSer1.timeConverted,timSer.timeConverted,$PRE.timSer.timeConverted,timSer1.sampleTrigger,timSer1.tActivateLast,$PRE.timSer1.tActivateLast,timSer1.active,timSer.sampleTrigger,timSer.tActivateLast,$PRE.timSer.tActivateLast,timSer.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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * 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.0001765/0.4434, allocations: 145.8 kB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.227e-05/0.4435, allocations: 19.75 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.4437, allocations: 151.4 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.4438, allocations: 4 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4438, allocations: 0 / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.4438, allocations: 0 / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006713/0.4445, allocations: 494.1 kB / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.4445, allocations: 0 / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.532e-05/0.4445, allocations: 12.03 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.4445, allocations: 3.984 kB / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.4446, allocations: 8 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4446, allocations: 4 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.4446, allocations: 3.938 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.4449, allocations: 242.4 kB / 1.077 GB, free: 1.367 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.43e-05/0.445, allocations: 112.7 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.445, allocations: 0 / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.4451, allocations: 11.98 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.534e-05/0.4452, allocations: 11.98 kB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.4453, allocations: 12 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000148/0.4454, allocations: 141.5 kB / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4454, allocations: 0 / 1.077 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003432/0.4458, allocations: 48 kB / 1.077 GB, free: 1.02 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: 13 (timSer1.sampleTrigger,timSer.sampleTrigger,plotConfiguration.active,$whenCondition3,$whenCondition2,$whenCondition1,plotConfiguration.tActivateLast,timSer.active,timSer.tActivateLast,timSer.timeConverted,timSer1.active,timSer1.tActivateLast,timSer1.timeConverted) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003848/0.4462, allocations: 169.4 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000492/0.4467, allocations: 254.6 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4467, allocations: 0 / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.4468, allocations: 47.92 kB / 1.077 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000471/0.4473, allocations: 68.98 kB / 1.077 GB, free: 496 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007431/0.448, allocations: 373.4 kB / 1.078 GB, free: 96 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.4484, allocations: 0.7284 MB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001083/0.4485, allocations: 25.94 kB / 1.079 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.4486, allocations: 23.42 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.4486, allocations: 0 / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of Templates: time 0.008361/0.4569, allocations: 3.367 MB / 1.082 GB, free: 11.95 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.makefile (rm -f Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & ./Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches