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.001323/0.001324, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001384/0.001385, allocations: 191.1 kB / 16.25 MB, free: 6.637 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.251/1.251, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.405/2.405, allocations: 437 MB / 0.7101 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.91 kB / 0.8689 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.5012, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002632/0.5039, allocations: 1.706 MB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007224/0.5046, allocations: 0.5456 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.5047, allocations: 7.938 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.5048, allocations: 23.86 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.5051, allocations: 55.73 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001295/0.5052, allocations: 63.88 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.5054, allocations: 123.6 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.5055, allocations: 45.47 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.5056, allocations: 63.7 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.927e-05/0.5057, allocations: 55.77 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.5057, allocations: 8 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.548e-05/0.5058, allocations: 31.97 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.328e-05/0.5059, allocations: 47.78 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.5059, allocations: 59.59 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.5061, allocations: 137.8 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5061, allocations: 4 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5061, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.5061, allocations: 0 / 1.02 GB, free: 15.77 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.0005176/0.5067, allocations: 470.5 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.5067, allocations: 8.031 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.715e-05/0.5067, allocations: 46.67 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.5068, allocations: 16.75 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001979/0.507, allocations: 228.8 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.507, allocations: 8.375 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.507, allocations: 8.375 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.5073, allocations: 109.8 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-06/0.5073, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.5073, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.5073, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.5075, allocations: 71.88 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.508, allocations: 392.4 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.5082, allocations: 38.56 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.489e-05/0.5083, allocations: 24.89 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.5083, allocations: 4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.5085, allocations: 97.08 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.5085, allocations: 4 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003739/0.5089, allocations: 125.3 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.5089, allocations: 81.09 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.5092, allocations: 260.9 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.5092, allocations: 29.64 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.5092, allocations: 132 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.5093, allocations: 3.906 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.5093, allocations: 17.72 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.5094, allocations: 334.8 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.997e-05/0.5095, allocations: 15.98 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.5096, allocations: 47.41 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.5098, allocations: 78.48 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5098, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002472/0.5101, allocations: 101.4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.5101, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.5101, allocations: 4.094 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.5101, allocations: 7.938 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.717e-05/0.5102, allocations: 11.98 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.5102, allocations: 0 / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.352e-05/0.5103, allocations: 19.92 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.5103, allocations: 0 / 1.022 GB, free: 12.76 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 8.862e-05/0.5104, allocations: 134.3 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.5105, allocations: 15.81 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.5105, allocations: 25.17 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.5105, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5105, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.5105, allocations: 4 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.5107, allocations: 213.6 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5107, allocations: 0 / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.603e-05/0.5107, allocations: 15.92 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.5108, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.5108, allocations: 3.938 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5108, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5108, allocations: 8 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.511, allocations: 120.8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.199e-05/0.5111, allocations: 92.86 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.5111, allocations: 7.938 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.611e-05/0.5112, allocations: 7.984 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.5112, allocations: 12 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.5113, allocations: 7.984 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001432/0.5114, allocations: 184.5 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5114, allocations: 0 / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002024/0.5116, allocations: 23.98 kB / 1.023 GB, free: 11.81 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.0005638/0.5122, allocations: 0.6904 MB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002436/0.5125, allocations: 59.89 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5125, allocations: 0 / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.5126, allocations: 27.97 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.5128, allocations: 48.36 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.5146, allocations: 1.774 MB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.5148, allocations: 0.7197 MB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.94e-05/0.5149, allocations: 20.55 kB / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.131e-05/0.515, allocations: 39.42 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.515, allocations: 0 / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8661/1.381, allocations: 3.378 MB / 1.03 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/1.381, allocations: 202.7 kB / 1.03 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/3.135, allocations: 6.562 kB / 1.03 GB, free: 4.777 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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