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.001387/0.001386, 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.001632/0.001632, allocations: 196.8 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.491/1.491, allocations: 222.9 MB / 239.8 MB, free: 4.527 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.526/2.526, allocations: 390.2 MB / 0.6642 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002329, allocations: 63.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8687/0.8711, allocations: 140.4 MB / 0.9489 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.003644/0.8748, allocations: 1.917 MB / 0.9508 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001454/0.8763, allocations: 0.6851 MB / 0.9514 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001975/0.8765, allocations: 2.531 kB / 0.9514 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.8768, allocations: 23.55 kB / 0.9515 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004464/0.8772, allocations: 96.41 kB / 0.9516 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004175/0.8777, allocations: 151.5 kB / 0.9517 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003635/0.878, allocations: 224.5 kB / 0.9519 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.8783, allocations: 46.08 kB / 0.952 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.8785, allocations: 93.44 kB / 0.9521 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0131/0.8916, allocations: 0.9604 MB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.8917, allocations: 9.688 kB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.8919, allocations: 36.38 kB / 0.953 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.167e-05/0.892, allocations: 33.5 kB / 0.9531 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.8921, allocations: 103.5 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.8925, allocations: 199.2 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.8925, allocations: 0 / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8925, allocations: 0 / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.8925, allocations: 0 / 0.9534 GB, free: 6.094 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.0009077/0.8934, allocations: 0.5614 MB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.8935, allocations: 9.062 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.8936, allocations: 29.41 kB / 0.9539 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.8939, allocations: 252.6 kB / 0.9542 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.894, allocations: 12.31 kB / 0.9542 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.894, allocations: 15.5 kB / 0.9542 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.8943, allocations: 108.3 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.8943, allocations: 5.375 kB / 0.9543 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.8943, allocations: 4 kB / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.8943, allocations: 2.875 kB / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001361/0.8945, allocations: 59.7 kB / 0.9544 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009001/0.8954, allocations: 486.4 kB / 0.9548 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.8957, allocations: 107.8 kB / 0.9549 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.496e-05/0.8957, allocations: 43.39 kB / 0.955 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.8958, allocations: 5.172 kB / 0.955 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.8959, allocations: 107.1 kB / 0.9551 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.994e-06/0.8959, allocations: 3.938 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0003873/0.8963, allocations: 178.1 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.8964, allocations: 55.66 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.8966, allocations: 210.7 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.8966, allocations: 33.98 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.8967, allocations: 125.9 kB / 0.9557 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.8968, allocations: 38.11 kB / 0.9557 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.903e-05/0.8969, allocations: 64.98 kB / 0.9558 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.927e-05/0.8969, allocations: 330.3 kB / 0.9561 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.8971, allocations: 71.89 kB / 0.9562 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.8973, allocations: 133.1 kB / 0.9563 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.8976, allocations: 213.6 kB / 0.9565 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.8976, allocations: 0 / 0.9565 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005628/0.8982, allocations: 325.9 kB / 0.9568 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.8982, allocations: 64.39 kB / 0.9569 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.8982, allocations: 9.672 kB / 0.9569 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.8983, allocations: 5.938 kB / 0.9569 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.736e-05/0.8984, allocations: 26.23 kB / 0.9569 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.8984, allocations: 3.625 kB / 0.9569 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.8986, allocations: 21.73 kB / 0.9569 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.8986, allocations: 17.58 kB / 0.9569 GB, free: 3.02 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.0001188/0.8987, allocations: 140.8 kB / 0.9571 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.229e-05/0.8988, allocations: 18.67 kB / 0.9571 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.899, allocations: 151.9 kB / 0.9572 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.899, allocations: 1.375 kB / 0.9572 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.899, allocations: 1.375 kB / 0.9572 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.899, allocations: 0 / 0.9572 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005229/0.8996, allocations: 498.2 kB / 0.9577 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.8996, allocations: 3.984 kB / 0.9577 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.8996, allocations: 5.344 kB / 0.9577 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.8996, allocations: 1.938 kB / 0.9577 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.8996, allocations: 10.03 kB / 0.9577 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8996, allocations: 0 / 0.9577 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.8996, allocations: 0 / 0.9577 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.8999, allocations: 246.2 kB / 0.958 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.9, allocations: 96.72 kB / 0.9581 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.9, allocations: 5.375 kB / 0.9581 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.9001, allocations: 8.391 kB / 0.9581 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.9002, allocations: 23.45 kB / 0.9581 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.9002, allocations: 10.3 kB / 0.9581 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001106/0.9003, allocations: 146.1 kB / 0.9582 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9003, allocations: 3.938 kB / 0.9583 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003386/0.9007, allocations: 47.81 kB / 0.9583 GB, free: 1.898 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: 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.0003256/0.901, allocations: 158.4 kB / 0.9584 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003816/0.9014, allocations: 253.2 kB / 0.9587 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.9014, allocations: 320 / 0.9587 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.058e-05/0.9015, allocations: 56.27 kB / 0.9587 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.9019, allocations: 62.83 kB / 0.9588 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006477/0.9026, allocations: 366.1 kB / 0.9592 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.9028, allocations: 0.731 MB / 0.9599 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.9029, allocations: 38.5 kB / 0.9599 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.68e-05/0.9029, allocations: 24.47 kB / 0.9599 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.9029, allocations: 3.938 kB / 0.9599 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of Templates: time 0.008922/0.9119, allocations: 3.372 MB / 0.9632 GB, free: 14.81 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