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.007832/0.007832, allocations: 103.6 kB / 15.73 MB, free: 6.039 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.001409/0.001409, allocations: 188.2 kB / 16.67 MB, free: 5.973 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.547/1.547, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.571/2.571, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.2 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3518, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.002962/0.3548, allocations: 1.775 MB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.3559, allocations: 0.6236 MB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.44e-05/0.356, allocations: 3.938 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.3562, allocations: 23.73 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000348/0.3566, allocations: 131.4 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.3569, allocations: 147.7 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.3572, allocations: 251.3 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001264/0.3573, allocations: 41.62 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.3574, allocations: 107.7 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005904/0.3634, allocations: 1.051 MB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.646e-05/0.3635, allocations: 16 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.3636, allocations: 43.92 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.3637, allocations: 47.83 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.3638, allocations: 91.5 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.3643, allocations: 227.2 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3643, allocations: 4 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3643, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.3643, allocations: 0 / 1.092 GB, free: 13.19 MB / 0.8575 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.0009072/0.3652, allocations: 0.5527 MB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3653, allocations: 8.031 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.428e-05/0.3654, allocations: 24.69 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.3658, allocations: 259.8 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3658, allocations: 8.375 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.3658, allocations: 16.12 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.3661, allocations: 107.1 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3661, allocations: 3.938 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.3661, allocations: 7.984 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3661, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.3663, allocations: 63.77 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.3672, allocations: 476.4 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.3675, allocations: 110.7 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.845e-05/0.3676, allocations: 40.84 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.3676, allocations: 7.984 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.3678, allocations: 110.5 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.914e-06/0.3678, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.0003675/0.3682, allocations: 173.3 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.3682, allocations: 55.41 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.3684, allocations: 207.7 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.3685, allocations: 33.7 kB / 1.095 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3686, allocations: 124.5 kB / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.3686, allocations: 39.45 kB / 1.095 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.3687, allocations: 65.66 kB / 1.095 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3689, allocations: 326.8 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.3691, allocations: 67.94 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.3693, allocations: 136.8 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.3696, allocations: 201.3 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3696, allocations: 4.031 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006343/0.3703, allocations: 340.5 kB / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.257e-05/0.3704, allocations: 69.11 kB / 1.096 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3704, allocations: 3.938 kB / 1.096 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3704, allocations: 4 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.358e-05/0.3705, allocations: 16 kB / 1.096 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3705, allocations: 11.92 kB / 1.096 GB, free: 9.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.3707, allocations: 20 kB / 1.096 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.19e-05/0.3708, allocations: 19.98 kB / 1.096 GB, free: 9.223 MB / 0.8575 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.0001583/0.3709, allocations: 144 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.777e-05/0.371, allocations: 19.72 kB / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002642/0.3712, allocations: 151.3 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3713, allocations: 4 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3713, allocations: 3.938 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3713, allocations: 3.984 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006264/0.3719, allocations: 497 kB / 1.097 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3719, allocations: 0 / 1.097 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.418e-05/0.372, allocations: 8 kB / 1.097 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.372, allocations: 0 / 1.097 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.372, allocations: 3.984 kB / 1.097 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.372, allocations: 4 kB / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.372, allocations: 0 / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.3723, allocations: 239.2 kB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.979e-05/0.3724, allocations: 108.8 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.3724, allocations: 4 kB / 1.097 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.3726, allocations: 7.984 kB / 1.097 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.171e-05/0.3726, allocations: 19.97 kB / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.3727, allocations: 4 kB / 1.097 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001437/0.3728, allocations: 149.5 kB / 1.097 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3728, allocations: 0 / 1.097 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003407/0.3732, allocations: 51.89 kB / 1.097 GB, free: 7.727 MB / 0.8575 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.0003494/0.3735, allocations: 160.6 kB / 1.097 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004338/0.374, allocations: 261.3 kB / 1.098 GB, free: 7.305 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.374, allocations: 3.938 kB / 1.098 GB, free: 7.301 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.62e-05/0.3741, allocations: 47.92 kB / 1.098 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.3745, allocations: 69.16 kB / 1.098 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007324/0.3753, allocations: 307.8 kB / 1.098 GB, free: 6.863 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.3757, allocations: 0.7281 MB / 1.099 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.509e-05/0.3758, allocations: 29.92 kB / 1.099 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.91e-05/0.3758, allocations: 19.44 kB / 1.099 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.3758, allocations: 3.938 kB / 1.099 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of Templates: time 0.01011/0.3859, allocations: 3.584 MB / 1.102 GB, free: 2.508 MB / 0.8575 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