Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_10_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.001549/0.001549, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 199.3 kB / 16.54 MB, free: 6.672 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.522/2.522, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 59.91 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5441/0.5456, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002965/0.5486, allocations: 1.649 MB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008915/0.5495, allocations: 0.5416 MB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.614e-05/0.5496, allocations: 7.938 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.5498, allocations: 27.73 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.5501, allocations: 63.67 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.5502, allocations: 67.84 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.5504, allocations: 123.6 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.5506, allocations: 45.47 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.5507, allocations: 63.7 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.5508, allocations: 55.77 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.5509, allocations: 8 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.5509, allocations: 31.97 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.551, allocations: 43.84 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.234e-05/0.5511, allocations: 59.59 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.5513, allocations: 137.7 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.5513, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.775e-06/0.5513, allocations: 4 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.5513, allocations: 3.938 kB / 1.02 GB, free: 15.54 MB / 0.7794 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.0006032/0.552, allocations: 470.5 kB / 1.021 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.552, allocations: 8.031 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.723e-05/0.552, allocations: 38.75 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.761e-05/0.5521, allocations: 16.75 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.5523, allocations: 232.8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.5523, allocations: 12.38 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.5524, allocations: 8.375 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002724/0.5526, allocations: 111 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.5527, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.5527, allocations: 4 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.5527, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.5529, allocations: 67.88 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.5535, allocations: 384.5 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.5536, allocations: 42.55 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.5538, allocations: 28.83 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.5538, allocations: 4 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.5541, allocations: 97.09 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.5541, allocations: 0 / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004308/0.5545, allocations: 125.3 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.5546, allocations: 85.05 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.5548, allocations: 256.9 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.5548, allocations: 33.64 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.5549, allocations: 124 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.5549, allocations: 7.891 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.555, allocations: 17.72 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.5551, allocations: 326.8 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.5552, allocations: 23.97 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.5553, allocations: 47.41 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.5556, allocations: 74.5 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5556, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002781/0.5559, allocations: 101.4 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5559, allocations: 4 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.5559, allocations: 4.094 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.5559, allocations: 15.92 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.556, allocations: 11.98 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.556, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.225e-05/0.5561, allocations: 15.92 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.5562, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 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.0001083/0.5563, allocations: 129.8 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.5563, allocations: 15.81 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.304e-05/0.5563, allocations: 21.19 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.5564, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5564, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.5564, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.5565, allocations: 217.6 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5566, allocations: 3.938 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.605e-05/0.5566, allocations: 15.92 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.5567, allocations: 0 / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.5567, allocations: 3.938 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5567, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5567, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.557, allocations: 124.8 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.054e-05/0.557, allocations: 92.91 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.5571, allocations: 3.938 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-05/0.5572, allocations: 7.984 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.5572, allocations: 12 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.5572, allocations: 4 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001618/0.5574, allocations: 188.5 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5574, allocations: 0 / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002229/0.5576, allocations: 20 kB / 1.024 GB, free: 11.59 MB / 0.7794 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.0006831/0.5583, allocations: 0.69 MB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002965/0.5586, allocations: 72 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5587, allocations: 0 / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.5588, allocations: 31.97 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.5591, allocations: 44.94 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.5611, allocations: 1.731 MB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.5613, allocations: 0.7197 MB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.442e-05/0.5614, allocations: 20.55 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.561e-05/0.5615, allocations: 43.42 kB / 1.027 GB, free: 8.094 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.5615, allocations: 3.938 kB / 1.027 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.5813, allocations: 3.557 MB / 1.031 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.046/7.628, allocations: 12.77 kB / 1.031 GB, free: 4.609 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches