Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",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.008057/0.008057, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.001996/0.001996, allocations: 192.8 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.205/2.205, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 67.89 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8241/0.8255, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003105/0.8287, allocations: 1.639 MB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.8297, allocations: 0.5358 MB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.8299, allocations: 2.625 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.8301, allocations: 31.52 kB / 1.09 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.8304, allocations: 64.94 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.8307, allocations: 65.27 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.831, allocations: 138.3 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.8311, allocations: 44.16 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.8313, allocations: 57.19 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.8314, allocations: 63.33 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.8315, allocations: 7.875 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.974e-05/0.8315, allocations: 29.84 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.8317, allocations: 45.23 kB / 1.09 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.159e-05/0.8317, allocations: 55.94 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.832, allocations: 143.2 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.832, allocations: 0.6562 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8321, allocations: 4 kB / 1.09 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.354e-05/0.8321, allocations: 0.7812 kB / 1.09 GB, free: 3.383 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006344/0.8327, allocations: 473.6 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.8328, allocations: 11.28 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.8328, allocations: 38.38 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.534e-05/0.8329, allocations: 21.23 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.8332, allocations: 246.7 kB / 1.091 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.8332, allocations: 3.812 kB / 1.091 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.8332, allocations: 7.406 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.8335, allocations: 107.7 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.8336, allocations: 0 / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.8336, allocations: 9.219 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.8336, allocations: 2.156 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.8338, allocations: 67.61 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006239/0.8345, allocations: 376.8 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.8346, allocations: 39.75 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.8348, allocations: 33.12 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.8348, allocations: 9.031 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.8351, allocations: 92.86 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.714e-06/0.8351, allocations: 0 / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004975/0.8356, allocations: 126.3 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.8356, allocations: 78.61 kB / 1.092 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.8359, allocations: 263.2 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.836, allocations: 26.23 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.836, allocations: 126.8 kB / 1.092 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.8361, allocations: 10.12 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.924e-05/0.8361, allocations: 18.42 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.722e-05/0.8362, allocations: 336.8 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.8363, allocations: 23.89 kB / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.8364, allocations: 47.88 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.8367, allocations: 74.14 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.8367, allocations: 0 / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003299/0.837, allocations: 101.2 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.8371, allocations: 10.92 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.8371, allocations: 0 / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.8371, allocations: 5 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.8372, allocations: 11.83 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.8372, allocations: 1 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.8374, allocations: 15.62 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.8374, allocations: 1.734 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0001031/0.8375, allocations: 132.2 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/0.8375, allocations: 24.25 kB / 1.093 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.8376, allocations: 21.64 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.8376, allocations: 0.9375 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8376, allocations: 0.75 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.8376, allocations: 0.8125 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.8378, allocations: 212.8 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.8378, allocations: 1.094 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-05/0.8379, allocations: 10.41 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.8379, allocations: 1.219 kB / 1.093 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.8379, allocations: 8.594 kB / 1.093 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.8379, allocations: 5.188 kB / 1.093 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.8379, allocations: 4.688 kB / 1.093 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.8383, allocations: 121.6 kB / 1.094 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.8383, allocations: 88.8 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.8384, allocations: 5.938 kB / 1.094 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.8385, allocations: 21.62 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.8385, allocations: 4.172 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.8386, allocations: 9.797 kB / 1.094 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000204/0.8388, allocations: 186.6 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8388, allocations: 0 / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002619/0.839, allocations: 22.58 kB / 1.094 GB, free: 0.5 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0006977/0.8397, allocations: 0.6837 MB / 1.094 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003313/0.8401, allocations: 62.69 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.8401, allocations: 3.938 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.8403, allocations: 32.45 kB / 1.095 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.8406, allocations: 44.06 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.8431, allocations: 1.748 MB / 1.096 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.8434, allocations: 0.7229 MB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000109/0.8435, allocations: 16.28 kB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.8436, allocations: 42.83 kB / 1.097 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of SimCode: time 4.41e-07/0.8436, allocations: 0 / 1.097 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.8674, allocations: 3.619 MB / 1.101 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.785, allocations: 5.031 kB / 1.101 GB, free: 13.15 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches