Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_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.0008059/0.0008059, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005497/0.005497, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.494/1.494, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.695/2.695, allocations: 390.9 MB / 0.6663 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005215/0.0005215, allocations: 12 kB / 0.8159 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9061/0.9066, allocations: 142.4 MB / 0.955 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.002838/0.9095, allocations: 1.576 MB / 0.9566 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001706/0.9113, allocations: 0.6711 MB / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.9115, allocations: 2.125 kB / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002589/0.9118, allocations: 23.8 kB / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.9122, allocations: 92.88 kB / 0.9573 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/0.9126, allocations: 143.9 kB / 0.9575 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000257/0.9129, allocations: 232.9 kB / 0.9577 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.9131, allocations: 37.5 kB / 0.9577 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.9133, allocations: 91.8 kB / 0.9578 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03964/0.9529, allocations: 2.646 MB / 0.9604 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.953, allocations: 8.688 kB / 0.9604 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.9532, allocations: 25.66 kB / 0.9604 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.684e-05/0.9533, allocations: 30.59 kB / 0.9605 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.9534, allocations: 119.2 kB / 0.9606 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.9538, allocations: 214.8 kB / 0.9608 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.9538, allocations: 0 / 0.9608 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.176e-06/0.9538, allocations: 1 kB / 0.9608 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.415e-05/0.9538, allocations: 0 / 0.9608 GB, free: 4.297 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008487/0.9547, allocations: 0.5119 MB / 0.9613 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.9547, allocations: 13.69 kB / 0.9613 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.9549, allocations: 20.44 kB / 0.9613 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.9552, allocations: 249.7 kB / 0.9616 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.9553, allocations: 12.03 kB / 0.9616 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.038e-05/0.9553, allocations: 19.59 kB / 0.9616 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/0.9556, allocations: 111.4 kB / 0.9617 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.9556, allocations: 0 / 0.9617 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.9556, allocations: 8.969 kB / 0.9617 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.9556, allocations: 7.219 kB / 0.9617 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.9557, allocations: 55.5 kB / 0.9618 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009854/0.9567, allocations: 499.3 kB / 0.9622 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.9571, allocations: 104 kB / 0.9623 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.733e-05/0.9572, allocations: 42.61 kB / 0.9624 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.9572, allocations: 1.812 kB / 0.9624 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.9574, allocations: 110.3 kB / 0.9625 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.083e-06/0.9574, allocations: 1.125 kB / 0.9625 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0004026/0.9578, allocations: 177.3 kB / 0.9627 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.9579, allocations: 54.06 kB / 0.9627 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.9581, allocations: 203.7 kB / 0.9629 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.9582, allocations: 41.66 kB / 0.9629 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.9583, allocations: 130.2 kB / 0.9631 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.9584, allocations: 38.69 kB / 0.9631 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.9584, allocations: 30.86 kB / 0.9631 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.9585, allocations: 328.3 kB / 0.9634 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.9587, allocations: 66.58 kB / 0.9635 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.959, allocations: 134.8 kB / 0.9636 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.9593, allocations: 206.4 kB / 0.9638 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.9593, allocations: 4.031 kB / 0.9638 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000625/0.9599, allocations: 328.4 kB / 0.9641 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.96, allocations: 65.55 kB / 0.9642 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.96, allocations: 3.938 kB / 0.9642 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.96, allocations: 2.906 kB / 0.9642 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.9601, allocations: 22.12 kB / 0.9642 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.9601, allocations: 3.5 kB / 0.9642 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.9604, allocations: 50.41 kB / 0.9643 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.208e-05/0.9604, allocations: 14.98 kB / 0.9643 GB, free: 1.27 MB / 0.7169 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.0001314/0.9606, allocations: 136.5 kB / 0.9644 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.9606, allocations: 23.58 kB / 0.9645 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.9609, allocations: 148 kB / 0.9646 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.9609, allocations: 1.469 kB / 0.9646 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.9609, allocations: 5.031 kB / 0.9646 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.9609, allocations: 0 / 0.9646 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000631/0.9615, allocations: 497.3 kB / 0.9651 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.9616, allocations: 0 / 0.9651 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.086e-05/0.9616, allocations: 9.875 kB / 0.9651 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.9616, allocations: 1.156 kB / 0.9651 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.9616, allocations: 1.719 kB / 0.9651 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.9616, allocations: 5 kB / 0.9651 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9617, allocations: 3.938 kB / 0.9651 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.9619, allocations: 245.1 kB / 0.9653 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.934e-05/0.962, allocations: 105.5 kB / 0.9654 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.962, allocations: 0.9688 kB / 0.9654 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.9621, allocations: 15.39 kB / 0.9654 GB, free: 296 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.023e-05/0.9622, allocations: 14.97 kB / 0.9655 GB, free: 288 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.9623, allocations: 11.09 kB / 0.9655 GB, free: 284 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001286/0.9624, allocations: 145.1 kB / 0.9656 GB, free: 176 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9624, allocations: 0 / 0.9656 GB, free: 176 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000382/0.9628, allocations: 52.23 kB / 0.9657 GB, free: 160 kB / 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: 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.0003957/0.9632, allocations: 169 kB / 0.9658 GB, free: 36 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005086/0.9637, allocations: 246.1 kB / 0.9661 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.9638, allocations: 1.062 kB / 0.9661 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.9639, allocations: 55.98 kB / 0.9661 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.9644, allocations: 62.72 kB / 0.9662 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008937/0.9653, allocations: 378.1 kB / 0.9665 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.9658, allocations: 0.7279 MB / 0.9672 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001563/0.966, allocations: 34.31 kB / 0.9673 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.481e-05/0.9661, allocations: 24.53 kB / 0.9673 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of SimCode: time 1.242e-06/0.9661, allocations: 0 / 0.9673 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of Templates: time 0.01233/0.9785, allocations: 3.343 MB / 0.9706 GB, free: 13.08 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.makefile (rm -f Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & ./Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches