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.004342/0.004342, allocations: 99.94 kB / 15.73 MB, free: 6.008 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.001059/0.001059, allocations: 198.9 kB / 16.68 MB, free: 5.93 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.125/2.125, allocations: 390.3 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 64.03 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6997/0.7012, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002349/0.7036, allocations: 1.642 MB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006961/0.7043, allocations: 0.5383 MB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.567e-05/0.7043, allocations: 2.781 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.7045, allocations: 27.91 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.7047, allocations: 64.16 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001315/0.7049, allocations: 66.69 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.705, allocations: 128.3 kB / 1.09 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.7052, allocations: 51.84 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.962e-05/0.7053, allocations: 55.53 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.78e-05/0.7054, allocations: 61.73 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.7054, allocations: 8.094 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.7055, allocations: 29.22 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.141e-05/0.7055, allocations: 48.66 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.7056, allocations: 60.58 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.7058, allocations: 137.8 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.7058, allocations: 0.9688 kB / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7058, allocations: 0 / 1.09 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.7058, allocations: 0 / 1.09 GB, free: 3.402 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.0004984/0.7063, allocations: 472.1 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.7064, allocations: 9.156 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.012e-05/0.7064, allocations: 38.88 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.7064, allocations: 21.38 kB / 1.091 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.7067, allocations: 239.6 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.7067, allocations: 5.875 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.7067, allocations: 8.5 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.707, allocations: 114.6 kB / 1.091 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.707, allocations: 5.688 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.707, allocations: 5.156 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.707, allocations: 1.312 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/0.7073, allocations: 63.2 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.7078, allocations: 380.9 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.7079, allocations: 43.95 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.708, allocations: 25.33 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.708, allocations: 0 / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.7082, allocations: 105.3 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.7083, allocations: 0 / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000422/0.7087, allocations: 122.3 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.7087, allocations: 78.62 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.7089, allocations: 255.4 kB / 1.092 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.709, allocations: 26.27 kB / 1.092 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.976e-05/0.709, allocations: 131 kB / 1.092 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.709, allocations: 5.641 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.7091, allocations: 18.91 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.414e-05/0.7091, allocations: 332.8 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.7092, allocations: 27.94 kB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.7094, allocations: 51.36 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.7096, allocations: 64.97 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7096, allocations: 1.062 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002667/0.7099, allocations: 105.6 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.7099, allocations: 5.812 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.7099, allocations: 4.547 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.7099, allocations: 5.062 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.71, allocations: 12.47 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.71, allocations: 1 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.989e-05/0.7101, allocations: 14.66 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.7101, allocations: 6.109 kB / 1.093 GB, free: 1.215 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 7.261e-05/0.7102, allocations: 135.1 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.7102, allocations: 19.06 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.199e-05/0.7103, allocations: 22.08 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.7103, allocations: 1.812 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.7103, allocations: 0 / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.7103, allocations: 5.172 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.7104, allocations: 220.3 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7104, allocations: 1.094 kB / 1.093 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.7105, allocations: 15.41 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.7105, allocations: 0.9375 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.305e-06/0.7105, allocations: 4.453 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.7106, allocations: 1.125 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7106, allocations: 7.922 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.7108, allocations: 125.7 kB / 1.093 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.979e-05/0.7109, allocations: 89.55 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.7109, allocations: 9.172 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.711, allocations: 9.969 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.711, allocations: 8.453 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.7111, allocations: 5.391 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001509/0.7112, allocations: 186.3 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7112, allocations: 0.75 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002181/0.7115, allocations: 22.12 kB / 1.094 GB, free: 0.5234 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.0005397/0.712, allocations: 0.681 MB / 1.094 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002813/0.7123, allocations: 58.16 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7123, allocations: 0.7188 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.7124, allocations: 32.28 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.7127, allocations: 50.06 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.7148, allocations: 1.741 MB / 1.096 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.715, allocations: 0.7153 MB / 1.097 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.872e-05/0.7151, allocations: 19.91 kB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.942e-05/0.7152, allocations: 44.05 kB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/0.7152, allocations: 0 / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4321/1.147, allocations: 3.616 MB / 1.101 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/8.861, allocations: 10.19 kB / 1.101 GB, free: 13.19 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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