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.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.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.0007914/0.0007914, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008061/0.0008061, allocations: 168.7 kB / 15.95 MB, free: 204 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.502/1.502, allocations: 223.3 MB / 240 MB, free: 5.441 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.514/2.514, allocations: 390.9 MB / 0.666 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005566, allocations: 12 kB / 0.8153 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9539/0.9545, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.002051/0.9566, allocations: 1.537 MB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.9576, allocations: 0.6432 MB / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.931e-05/0.9577, allocations: 1.156 kB / 0.9566 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.9579, allocations: 25.39 kB / 0.9566 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.9582, allocations: 101 kB / 0.9567 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.9586, allocations: 152.9 kB / 0.9568 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.9589, allocations: 203.5 kB / 0.957 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.959, allocations: 33.66 kB / 0.957 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.9591, allocations: 97.55 kB / 0.9571 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00381/0.9629, allocations: 2.486 MB / 0.9596 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.963, allocations: 12.84 kB / 0.9596 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.584e-05/0.9631, allocations: 29.58 kB / 0.9596 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.9632, allocations: 37.39 kB / 0.9596 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.337e-05/0.9633, allocations: 49.95 kB / 0.9597 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.9635, allocations: 142.4 kB / 0.9598 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.9635, allocations: 0 / 0.9598 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.751e-06/0.9635, allocations: 7.875 kB / 0.9598 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.9635, allocations: 3.938 kB / 0.9598 GB, free: 4.477 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.0006683/0.9642, allocations: 0.5233 MB / 0.9603 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.9642, allocations: 10.03 kB / 0.9604 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.591e-05/0.9643, allocations: 24.05 kB / 0.9604 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.9646, allocations: 243.5 kB / 0.9606 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.9646, allocations: 7.25 kB / 0.9606 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.9646, allocations: 16.41 kB / 0.9606 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.9648, allocations: 111.4 kB / 0.9607 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.9649, allocations: 4 kB / 0.9607 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.9649, allocations: 5.094 kB / 0.9608 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.9649, allocations: 2.5 kB / 0.9608 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.965, allocations: 60.11 kB / 0.9608 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007986/0.9658, allocations: 498.7 kB / 0.9613 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.9661, allocations: 107.4 kB / 0.9614 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.002e-05/0.9662, allocations: 43.27 kB / 0.9614 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.9662, allocations: 5.109 kB / 0.9614 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001546/0.9664, allocations: 97.55 kB / 0.9615 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.9664, allocations: 1.406 kB / 0.9615 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0003434/0.9667, allocations: 169.1 kB / 0.9617 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.9668, allocations: 57.98 kB / 0.9617 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.967, allocations: 218.7 kB / 0.962 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.967, allocations: 34.39 kB / 0.962 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.402e-05/0.9671, allocations: 126.2 kB / 0.9621 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.9672, allocations: 40.64 kB / 0.9621 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.801e-05/0.9672, allocations: 3.656 kB / 0.9621 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.339e-05/0.9673, allocations: 327.2 kB / 0.9625 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.9674, allocations: 66.66 kB / 0.9625 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.9677, allocations: 132.9 kB / 0.9627 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.9679, allocations: 130.2 kB / 0.9628 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.9679, allocations: 0 / 0.9628 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006547/0.9686, allocations: 327.7 kB / 0.9631 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.729e-05/0.9686, allocations: 70.45 kB / 0.9632 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.9686, allocations: 3.5 kB / 0.9632 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.9687, allocations: 3.562 kB / 0.9632 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.131e-05/0.9688, allocations: 18.52 kB / 0.9632 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.9688, allocations: 3.594 kB / 0.9632 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.969, allocations: 30.08 kB / 0.9632 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.969, allocations: 16.23 kB / 0.9632 GB, free: 1.57 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 ($PRE.timSer1.timeConverted,timSer1.timeConverted,$PRE.timSer.timeConverted,timSer.timeConverted,$whenCondition3,$whenCondition2,$whenCondition1,plotConfiguration.active,$PRE.plotConfiguration.tActivateLast,plotConfiguration.tActivateLast,timSer.active,$PRE.timSer.tActivateLast,timSer.tActivateLast,timSer.sampleTrigger,timSer1.active,$PRE.timSer1.tActivateLast,timSer1.tActivateLast,timSer1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.9691, allocations: 151.2 kB / 0.9634 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.885e-05/0.9692, allocations: 16.19 kB / 0.9634 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.9696, allocations: 148.5 kB / 0.9635 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.9696, allocations: 2.312 kB / 0.9635 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.9696, allocations: 9.328 kB / 0.9635 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.9696, allocations: 0 / 0.9635 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007554/0.9704, allocations: 0.4884 MB / 0.964 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.9704, allocations: 0 / 0.964 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.458e-05/0.9705, allocations: 10.05 kB / 0.964 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.9705, allocations: 1.031 kB / 0.964 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.9705, allocations: 4.969 kB / 0.964 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.9705, allocations: 1.094 kB / 0.964 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.9705, allocations: 3.953 kB / 0.964 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/0.9708, allocations: 235.3 kB / 0.9643 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-05/0.9709, allocations: 105.9 kB / 0.9644 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.971, allocations: 4.781 kB / 0.9644 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.9711, allocations: 15.48 kB / 0.9644 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.976e-05/0.9712, allocations: 19.56 kB / 0.9644 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.9712, allocations: 14.42 kB / 0.9644 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001605/0.9714, allocations: 147.9 kB / 0.9646 GB, free: 460 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9714, allocations: 0 / 0.9646 GB, free: 460 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005084/0.9719, allocations: 43.78 kB / 0.9646 GB, free: 452 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 (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.000382/0.9723, allocations: 172.4 kB / 0.9648 GB, free: 324 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003818/0.9727, allocations: 253.1 kB / 0.965 GB, free: 132 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9727, allocations: 0 / 0.965 GB, free: 132 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.308e-05/0.9728, allocations: 51.64 kB / 0.9651 GB, free: 112 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.9733, allocations: 54.88 kB / 0.9651 GB, free: 84 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007534/0.974, allocations: 360.4 kB / 0.9654 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.9744, allocations: 0.7282 MB / 0.9662 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.153e-05/0.9745, allocations: 34.36 kB / 0.9662 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.9746, allocations: 23.52 kB / 0.9662 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.9746, allocations: 0 / 0.9662 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of Templates: time 0.00795/0.9826, allocations: 3.231 MB / 0.9694 GB, free: 13.43 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