Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_11_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.005175/0.005175, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.001162/0.001162, allocations: 199.8 kB / 16.67 MB, free: 5.531 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.431/2.431, allocations: 469.8 MB / 0.7425 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002395/0.002395, allocations: 67.83 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6518/0.6542, allocations: 159.1 MB / 1.22 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002916/0.6571, allocations: 1.647 MB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009037/0.658, allocations: 0.5417 MB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.406e-05/0.6581, allocations: 0 / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.6583, allocations: 23.78 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002316/0.6585, allocations: 66.05 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.6587, allocations: 71.78 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.6589, allocations: 135.6 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.659, allocations: 41.48 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.6591, allocations: 59.7 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.6593, allocations: 59.75 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.6593, allocations: 8 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 6.339e-05/0.6594, allocations: 27.98 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.578e-05/0.6595, allocations: 48.7 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.909e-05/0.6595, allocations: 59.59 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.6597, allocations: 150.9 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.6597, allocations: 0 / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.015e-06/0.6597, allocations: 4 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.6598, allocations: 0 / 1.223 GB, free: 15.07 MB / 0.9512 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.000596/0.6604, allocations: 470.4 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.6604, allocations: 12.03 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.6604, allocations: 38.75 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.552e-05/0.6605, allocations: 28.78 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.6608, allocations: 240.9 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.6608, allocations: 4.375 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.6608, allocations: 4.375 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.6611, allocations: 113.7 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.6611, allocations: 4 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.6611, allocations: 4 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.6611, allocations: 7.984 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.6614, allocations: 59.94 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005416/0.6619, allocations: 380.5 kB / 1.224 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.6621, allocations: 42.55 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.6622, allocations: 24.91 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.6622, allocations: 4 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.6624, allocations: 105 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.6624, allocations: 0 / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0004044/0.6629, allocations: 117.5 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.6629, allocations: 81.11 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.6632, allocations: 256.9 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.6632, allocations: 29.7 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.6633, allocations: 128.1 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.6633, allocations: 3.953 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.6633, allocations: 21.7 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6635, allocations: 326.8 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.6636, allocations: 27.97 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.6637, allocations: 55.34 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.6639, allocations: 62.53 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.6639, allocations: 0 / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002728/0.6642, allocations: 109.5 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.6642, allocations: 8 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.6643, allocations: 0 / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.6643, allocations: 3.938 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.934e-05/0.6644, allocations: 19.86 kB / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.6644, allocations: 0 / 1.226 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.6645, allocations: 20.02 kB / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.6645, allocations: 4 kB / 1.226 GB, free: 12.04 MB / 0.9512 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 9.983e-05/0.6646, allocations: 133.8 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.6646, allocations: 15.91 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.6647, allocations: 25.17 kB / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.6647, allocations: 0 / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.6647, allocations: 0 / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.6647, allocations: 0 / 1.226 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.6649, allocations: 217.5 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.6649, allocations: 4 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/0.665, allocations: 11.98 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.665, allocations: 4 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.665, allocations: 7.938 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.665, allocations: 0 / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.665, allocations: 0 / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.6653, allocations: 125.2 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.6653, allocations: 89.06 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.6654, allocations: 7.922 kB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.843e-05/0.6655, allocations: 11.98 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.6655, allocations: 7.984 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.6655, allocations: 4 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000171/0.6657, allocations: 188.5 kB / 1.227 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6657, allocations: 0 / 1.227 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001995/0.6659, allocations: 19.95 kB / 1.227 GB, free: 11.09 MB / 0.9512 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.0006755/0.6666, allocations: 0.687 MB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.6669, allocations: 59.88 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6669, allocations: 0 / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.667, allocations: 31.97 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.6673, allocations: 54.06 kB / 1.227 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.6693, allocations: 1.756 MB / 1.229 GB, free: 8.383 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.6696, allocations: 0.7119 MB / 1.23 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.234e-05/0.6697, allocations: 24.47 kB / 1.23 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.6698, allocations: 43.42 kB / 1.23 GB, free: 7.578 MB / 0.9512 GB Notification: Performance of SimCode: time 2.11e-07/0.6698, allocations: 0 / 1.23 GB, free: 7.578 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.067/2.736, allocations: 3.615 MB / 1.233 GB, free: 4.07 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/15.42, allocations: 8.531 kB / 1.233 GB, free: 4.062 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches