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: "" <> buildModelFMU(Buildings.Utilities.Plotters.Examples.TimeSeries,fileNamePrefix="Buildings_9_Buildings_Utilities_Plotters_Examples_TimeSeries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Plotters.Examples.TimeSeries,fileNamePrefix="Buildings_9_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.009094/0.009094, allocations: 98.75 kB / 15.73 MB, free: 6.059 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.00222/0.00222, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.199 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.286/2.286, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 70.72 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2385, allocations: 140.4 MB / 1.087 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Examples.TimeSeries): time 0.002925/0.2414, allocations: 1.767 MB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.2427, allocations: 0.6274 MB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.323e-05/0.2428, allocations: 3.938 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.243, allocations: 31.72 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.2434, allocations: 123.4 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.2438, allocations: 158.9 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.2441, allocations: 235.4 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2442, allocations: 53.64 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.2443, allocations: 111.7 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006024/0.2504, allocations: 1.045 MB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.2504, allocations: 20 kB / 1.092 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.333e-05/0.2505, allocations: 43.91 kB / 1.092 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.55e-05/0.2506, allocations: 39.84 kB / 1.092 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.2507, allocations: 95.5 kB / 1.092 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.251, allocations: 223.1 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.251, allocations: 0 / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2511, allocations: 0 / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.2511, allocations: 0 / 1.092 GB, free: 13.73 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.0007506/0.2518, allocations: 0.5603 MB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2519, allocations: 12.03 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.062e-05/0.2519, allocations: 42.73 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.387e-05/0.252, allocations: 20.84 kB / 1.093 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.2523, allocations: 255.9 kB / 1.093 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.2523, allocations: 12.38 kB / 1.093 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.004e-05/0.2524, allocations: 15.94 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.2526, allocations: 101.6 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2526, allocations: 4 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.2526, allocations: 15.92 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.2526, allocations: 7.984 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.2528, allocations: 64.78 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.2536, allocations: 480.4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.2539, allocations: 118.7 kB / 1.094 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.094e-05/0.2539, allocations: 36.84 kB / 1.094 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.254, allocations: 4 kB / 1.094 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.2541, allocations: 110.3 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.2541, allocations: 4 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.0003227/0.2544, allocations: 173.5 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.2545, allocations: 63.28 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.2547, allocations: 203.8 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.2547, allocations: 37.7 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.265e-05/0.2548, allocations: 120.5 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/0.2548, allocations: 43.72 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.552e-05/0.255, allocations: 57.67 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.983e-05/0.2551, allocations: 330.8 kB / 1.095 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2552, allocations: 67.94 kB / 1.095 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.2555, allocations: 132.8 kB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.2558, allocations: 208.7 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.2558, allocations: 4 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005921/0.2564, allocations: 332.6 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.248e-05/0.2564, allocations: 73.36 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2564, allocations: 0 / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2565, allocations: 4 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.505e-05/0.2565, allocations: 16 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2566, allocations: 11.92 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.2568, allocations: 19.89 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.2568, allocations: 15.98 kB / 1.096 GB, free: 9.691 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.0001276/0.2569, allocations: 144 kB / 1.096 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.257, allocations: 27.8 kB / 1.096 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.2572, allocations: 143.5 kB / 1.096 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2572, allocations: 7.938 kB / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2572, allocations: 0 / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2572, allocations: 3.984 kB / 1.096 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005553/0.2578, allocations: 497 kB / 1.096 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2578, allocations: 3.984 kB / 1.096 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.259e-05/0.2579, allocations: 8 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2579, allocations: 0 / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.2579, allocations: 7.984 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.2579, allocations: 4 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2579, allocations: 0 / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.2581, allocations: 239.3 kB / 1.097 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.926e-05/0.2582, allocations: 104.9 kB / 1.097 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.2583, allocations: 4 kB / 1.097 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.2584, allocations: 11.98 kB / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.2585, allocations: 23.97 kB / 1.097 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.2585, allocations: 8 kB / 1.097 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001195/0.2586, allocations: 145.5 kB / 1.097 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2586, allocations: 0 / 1.097 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003197/0.2589, allocations: 51.98 kB / 1.097 GB, free: 8.184 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.0007022/0.2597, allocations: 0.8304 MB / 1.098 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003976/0.2601, allocations: 250.7 kB / 1.098 GB, free: 7.078 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2601, allocations: 4 kB / 1.098 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.044e-05/0.2602, allocations: 58.58 kB / 1.098 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.2606, allocations: 59.64 kB / 1.098 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.2633, allocations: 2.263 MB / 1.1 GB, free: 4.566 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.2636, allocations: 0.7242 MB / 1.101 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.84e-05/0.2637, allocations: 25.94 kB / 1.101 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.485e-05/0.2638, allocations: 59.41 kB / 1.101 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.2638, allocations: 4 kB / 1.101 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.2858, allocations: 5.482 MB / 1.106 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/7.965, allocations: 14.39 kB / 1.106 GB, free: 14.35 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Plotters_Examples_TimeSeries.fmu > Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Plotters.Examples.TimeSeries_res.csv","/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