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.0014/0.0014, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001656/0.001656, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.385/1.385, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.285/2.285, allocations: 390.3 MB / 0.6653 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.8 kB / 0.8132 GB, free: 32.99 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3576, allocations: 140.4 MB / 0.9502 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.00447/0.3621, allocations: 1.768 MB / 0.952 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3636, allocations: 0.6273 MB / 0.9526 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.3638, allocations: 7.938 kB / 0.9526 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.364, allocations: 23.73 kB / 0.9526 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004949/0.3646, allocations: 123.4 kB / 0.9527 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.365, allocations: 155.5 kB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.3653, allocations: 235.5 kB / 0.9531 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.3655, allocations: 49.64 kB / 0.9532 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.3656, allocations: 107.6 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006235/0.3719, allocations: 1.054 MB / 0.9543 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.3719, allocations: 20 kB / 0.9543 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.3721, allocations: 36 kB / 0.9543 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.171e-05/0.3722, allocations: 43.83 kB / 0.9544 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.3723, allocations: 95.5 kB / 0.9545 GB, free: 4.805 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.3727, allocations: 211.3 kB / 0.9547 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3727, allocations: 4 kB / 0.9547 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3727, allocations: 0 / 0.9547 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.3727, allocations: 0 / 0.9547 GB, free: 4.594 MB / 0.7325 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.0009291/0.3736, allocations: 0.568 MB / 0.9552 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3737, allocations: 8.031 kB / 0.9552 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.047e-05/0.3738, allocations: 24.66 kB / 0.9553 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.3741, allocations: 248 kB / 0.9555 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.3742, allocations: 12.38 kB / 0.9555 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.3742, allocations: 20.12 kB / 0.9555 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.3745, allocations: 115.5 kB / 0.9556 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.3745, allocations: 4 kB / 0.9556 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.3745, allocations: 0 / 0.9556 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.3745, allocations: 4 kB / 0.9557 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.3746, allocations: 55.95 kB / 0.9557 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000959/0.3756, allocations: 496.2 kB / 0.9562 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.3759, allocations: 102.6 kB / 0.9563 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.342e-05/0.376, allocations: 40.89 kB / 0.9563 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.376, allocations: 4 kB / 0.9563 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.3762, allocations: 115.3 kB / 0.9564 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.3762, allocations: 0 / 0.9564 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.000399/0.3766, allocations: 171.7 kB / 0.9566 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.3767, allocations: 59.41 kB / 0.9566 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.3769, allocations: 211.6 kB / 0.9569 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.034e-05/0.377, allocations: 33.7 kB / 0.9569 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.3771, allocations: 124.5 kB / 0.957 GB, free: 2 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.3772, allocations: 39.45 kB / 0.957 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.3773, allocations: 65.67 kB / 0.9571 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000189/0.3775, allocations: 326.8 kB / 0.9574 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.3777, allocations: 63.95 kB / 0.9575 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.378, allocations: 128.7 kB / 0.9576 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.3783, allocations: 209.2 kB / 0.9578 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/0.3783, allocations: 0 / 0.9578 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006296/0.3789, allocations: 332.7 kB / 0.9581 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.164e-05/0.379, allocations: 71.39 kB / 0.9582 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.379, allocations: 3.938 kB / 0.9582 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3791, allocations: 4 kB / 0.9582 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.494e-05/0.3792, allocations: 19.92 kB / 0.9582 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3792, allocations: 4 kB / 0.9582 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.3794, allocations: 31.77 kB / 0.9582 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.3794, allocations: 16.14 kB / 0.9583 GB, free: 0.6055 MB / 0.7325 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.0001631/0.3796, allocations: 140 kB / 0.9584 GB, free: 468 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.3796, allocations: 19.8 kB / 0.9584 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.3799, allocations: 151.3 kB / 0.9586 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3799, allocations: 0 / 0.9586 GB, free: 296 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.38, allocations: 4 kB / 0.9586 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.38, allocations: 0 / 0.9586 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006922/0.3807, allocations: 498.2 kB / 0.959 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3807, allocations: 0 / 0.959 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.375e-05/0.3807, allocations: 15.88 kB / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.3807, allocations: 0 / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.3808, allocations: 0 / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3808, allocations: 0 / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3808, allocations: 0 / 0.959 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.3811, allocations: 249.6 kB / 0.9593 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.95e-05/0.3812, allocations: 104.8 kB / 0.9594 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.3812, allocations: 4 kB / 0.9594 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3813, allocations: 11.98 kB / 0.9594 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.189e-05/0.3814, allocations: 11.98 kB / 0.9594 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/0.3814, allocations: 12.03 kB / 0.9594 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001421/0.3816, allocations: 141.5 kB / 0.9596 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3816, allocations: 3.938 kB / 0.9596 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003224/0.3819, allocations: 47.91 kB / 0.9596 GB, free: 15.12 MB / 0.7481 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.0004667/0.3824, allocations: 176 kB / 0.9598 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005143/0.3829, allocations: 258.5 kB / 0.96 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3829, allocations: 0 / 0.96 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.872e-05/0.383, allocations: 51.92 kB / 0.9601 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.3835, allocations: 70.31 kB / 0.9601 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008317/0.3844, allocations: 353.3 kB / 0.9605 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.3848, allocations: 0.7319 MB / 0.9612 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.3849, allocations: 19.44 kB / 0.9612 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of SimCode: time 5.91e-07/0.3849, allocations: 0 / 0.9612 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of Templates: time 0.006516/0.3914, allocations: 3.267 MB / 0.9644 GB, free: 10.16 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches