Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_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.00186/0.00186, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.006591/0.006591, allocations: 195.1 kB / 16.26 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.856/2.856, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 6.081/6.081, allocations: 461.9 MB / 0.7343 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002583/0.002583, allocations: 65.81 kB / 0.8987 GB, free: 37.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5768/0.5794, allocations: 157.4 MB / 1.052 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00589/0.5854, allocations: 1.712 MB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001897/0.5873, allocations: 0.5493 MB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.5875, allocations: 7.938 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003354/0.5879, allocations: 23.86 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004769/0.5884, allocations: 51.81 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003284/0.5888, allocations: 59.86 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.5891, allocations: 127.6 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.5894, allocations: 49.47 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.5897, allocations: 51.78 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.5899, allocations: 63.69 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.59, allocations: 8 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.5901, allocations: 31.92 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.5903, allocations: 39.89 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.5904, allocations: 67.48 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.5908, allocations: 139.7 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5909, allocations: 4 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.356e-06/0.5909, allocations: 4 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.2e-05/0.5909, allocations: 0 / 1.055 GB, free: 5.656 MB / 0.8106 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.001167/0.5921, allocations: 462.6 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.558e-05/0.5922, allocations: 12.62 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.041e-05/0.5923, allocations: 38.75 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.5924, allocations: 20.73 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.5929, allocations: 224.9 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.5929, allocations: 16.36 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.593, allocations: 8.375 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.5935, allocations: 113.6 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.5936, allocations: 0 / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.5936, allocations: 8 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.5936, allocations: 0 / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004649/0.5941, allocations: 59.94 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.5952, allocations: 384.4 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.5955, allocations: 38.55 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.5958, allocations: 36.89 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.5958, allocations: 0 / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005666/0.5964, allocations: 97.02 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.635e-06/0.5964, allocations: 0 / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0009097/0.5973, allocations: 125.4 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.5975, allocations: 77.11 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004912/0.598, allocations: 253 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.598, allocations: 25.7 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.5982, allocations: 136 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.5982, allocations: 7.906 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/0.5983, allocations: 13.72 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.5985, allocations: 330.8 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.5988, allocations: 23.97 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.5991, allocations: 51.34 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/0.5996, allocations: 70.55 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.5997, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006237/0.6003, allocations: 105.4 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.6004, allocations: 9.656 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.6004, allocations: 0 / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/0.6004, allocations: 3.938 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.6006, allocations: 11.98 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.6007, allocations: 11.92 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.6009, allocations: 7.984 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.6009, allocations: 11.94 kB / 1.058 GB, free: 2.656 MB / 0.8106 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.0002033/0.6011, allocations: 125.8 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/0.6012, allocations: 27.72 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.66e-05/0.6013, allocations: 17.47 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.6014, allocations: 7.922 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6014, allocations: 0 / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.6014, allocations: 3.984 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003474/0.6017, allocations: 221.5 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.6018, allocations: 0 / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.6019, allocations: 11.98 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.602, allocations: 0 / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.602, allocations: 3.938 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.602, allocations: 4 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.602, allocations: 0 / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005896/0.6026, allocations: 128.8 kB / 1.059 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.6027, allocations: 88.92 kB / 1.059 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.235e-05/0.6028, allocations: 3.938 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.603, allocations: 15.98 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.934e-05/0.6031, allocations: 0 / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.6031, allocations: 11.98 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003334/0.6035, allocations: 184.5 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of sort global known variables: time 8.62e-07/0.6035, allocations: 0 / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004573/0.604, allocations: 20 kB / 1.059 GB, free: 1.703 MB / 0.8106 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.001364/0.6054, allocations: 0.6776 MB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005269/0.6059, allocations: 67.95 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6059, allocations: 0 / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.6062, allocations: 27.97 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005773/0.6067, allocations: 44.47 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.611, allocations: 1.779 MB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.6114, allocations: 0.7197 MB / 1.062 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001302/0.6116, allocations: 20.66 kB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.6117, allocations: 47.42 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of SimCode: time 1.092e-06/0.6117, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04141/0.6531, allocations: 3.39 MB / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004351/0.6537, allocations: 202.8 kB / 1.066 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.218/4.871, allocations: 0 / 1.066 GB, free: 10.67 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches