Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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: "" <> buildModelFMU(Buildings.Utilities.Plotters.Examples.TimeSeries,fileNamePrefix="Buildings_latest_Buildings_Utilities_Plotters_Examples_TimeSeries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Plotters.Examples.TimeSeries,fileNamePrefix="Buildings_latest_Buildings_Utilities_Plotters_Examples_TimeSeries",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01026/0.01026, allocations: 96.31 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.001897/0.001897, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.81/2.81, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002238, allocations: 67.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.418, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.003385/0.4215, allocations: 1.773 MB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.4229, allocations: 0.6391 MB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.4231, allocations: 7.938 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.4233, allocations: 27.7 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005059/0.4238, allocations: 123.4 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004567/0.4243, allocations: 155.6 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.4247, allocations: 239.5 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.4248, allocations: 37.67 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.425, allocations: 111.6 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006341/0.4314, allocations: 1.047 MB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.177e-05/0.4315, allocations: 16 kB / 1.224 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.4317, allocations: 39.98 kB / 1.224 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.4318, allocations: 47.77 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.4319, allocations: 91.52 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.4324, allocations: 223.1 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.4324, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4324, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.563e-05/0.4324, allocations: 0 / 1.224 GB, free: 10.36 MB / 0.9825 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.001038/0.4335, allocations: 0.5604 MB / 1.225 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4335, allocations: 12.03 kB / 1.225 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.451e-05/0.4336, allocations: 42.73 kB / 1.225 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.4337, allocations: 24.8 kB / 1.225 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.4341, allocations: 248.1 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.4341, allocations: 12.38 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.4342, allocations: 19.94 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.4344, allocations: 105.6 kB / 1.225 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4344, allocations: 4 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.4345, allocations: 11.98 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.4345, allocations: 0 / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.4346, allocations: 63.77 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009398/0.4356, allocations: 492.4 kB / 1.226 GB, free: 8.621 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/0.4359, allocations: 110.7 kB / 1.226 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.411e-05/0.436, allocations: 36.84 kB / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.436, allocations: 4 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.4362, allocations: 107.3 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.823e-06/0.4362, allocations: 7.938 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.00038/0.4366, allocations: 177.4 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.4366, allocations: 59.39 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.4368, allocations: 203.8 kB / 1.226 GB, free: 7.867 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.4369, allocations: 33.7 kB / 1.226 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.437, allocations: 124.5 kB / 1.227 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.437, allocations: 39.69 kB / 1.227 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.4371, allocations: 61.67 kB / 1.227 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.4373, allocations: 334.8 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.4375, allocations: 63.94 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.4377, allocations: 129.8 kB / 1.227 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.438, allocations: 212.3 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.438, allocations: 0 / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006888/0.4387, allocations: 340.6 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.4388, allocations: 67.48 kB / 1.228 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.4388, allocations: 8 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.4389, allocations: 0 / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.813e-05/0.439, allocations: 16 kB / 1.228 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.439, allocations: 7.922 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.4392, allocations: 23.89 kB / 1.228 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.4392, allocations: 11.98 kB / 1.228 GB, free: 6.312 MB / 0.9825 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.0001483/0.4394, allocations: 140.6 kB / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.4394, allocations: 19.84 kB / 1.228 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002655/0.4397, allocations: 157.8 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4397, allocations: 0 / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.4397, allocations: 0 / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4397, allocations: 7.922 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006477/0.4404, allocations: 494.2 kB / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4404, allocations: 0 / 1.229 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-05/0.4405, allocations: 4 kB / 1.229 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4405, allocations: 0 / 1.229 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.4405, allocations: 19.97 kB / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.4405, allocations: 0 / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4405, allocations: 3.984 kB / 1.229 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.4408, allocations: 243.2 kB / 1.229 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.906e-05/0.4409, allocations: 101 kB / 1.229 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.957e-05/0.4409, allocations: 4 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.441, allocations: 11.98 kB / 1.229 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.4411, allocations: 19.97 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.4411, allocations: 12 kB / 1.229 GB, free: 4.992 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000155/0.4413, allocations: 149.5 kB / 1.229 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4413, allocations: 0 / 1.229 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003991/0.4417, allocations: 51.88 kB / 1.229 GB, free: 4.797 MB / 0.9825 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.001308/0.443, allocations: 0.8362 MB / 1.23 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005425/0.4436, allocations: 252.9 kB / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4436, allocations: 0 / 1.23 GB, free: 3.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.4437, allocations: 51.91 kB / 1.23 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005625/0.4443, allocations: 73.33 kB / 1.23 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/0.4477, allocations: 2.264 MB / 1.233 GB, free: 1.184 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.4481, allocations: 0.7242 MB / 1.233 GB, free: 444 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001335/0.4483, allocations: 29.94 kB / 1.233 GB, free: 412 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.4484, allocations: 59.41 kB / 1.233 GB, free: 352 kB / 0.9825 GB Notification: Performance of SimCode: time 3.617e-06/0.4484, allocations: 0 / 1.233 GB, free: 352 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03248/0.4809, allocations: 5.487 MB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.511, allocations: 11.36 kB / 1.239 GB, free: 10.97 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Utilities_Plotters_Examples_TimeSeries.fmu > Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Examples_TimeSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Plotters.Examples.TimeSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches