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.005655/0.005655, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001326/0.001326, allocations: 197.7 kB / 16.68 MB, free: 5.926 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.237/2.237, allocations: 390.3 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 55.91 kB / 0.9504 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8504/0.8518, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00369/0.8555, allocations: 1.639 MB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.8567, allocations: 0.5402 MB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.8569, allocations: 7.625 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.8571, allocations: 22.77 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003787/0.8575, allocations: 68.66 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.8578, allocations: 61.56 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.8581, allocations: 130 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.8583, allocations: 47.45 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.8585, allocations: 62 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.8586, allocations: 58.72 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.749e-05/0.8587, allocations: 12.17 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.537e-05/0.8588, allocations: 25.66 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.8589, allocations: 40.86 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.462e-05/0.859, allocations: 64.64 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.8593, allocations: 145.3 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.8593, allocations: 0 / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.375e-06/0.8593, allocations: 1 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.8594, allocations: 0 / 1.09 GB, free: 3.387 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.0007091/0.8601, allocations: 467.1 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.8601, allocations: 9.562 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.8602, allocations: 47.69 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.032e-05/0.8602, allocations: 17.03 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.8605, allocations: 234.9 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.8606, allocations: 7.25 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.8606, allocations: 3.75 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.8609, allocations: 110.9 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.8609, allocations: 5.219 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.8609, allocations: 4.797 kB / 1.091 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.8609, allocations: 6.406 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.8612, allocations: 58.66 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.8617, allocations: 392.2 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.8619, allocations: 40.66 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.862, allocations: 33.16 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.862, allocations: 0.9062 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.8623, allocations: 100.3 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.834e-06/0.8623, allocations: 0 / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000465/0.8627, allocations: 127 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.8628, allocations: 78.45 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.8631, allocations: 250.5 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.8631, allocations: 31.28 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.8632, allocations: 130.1 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.8632, allocations: 5.609 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.8632, allocations: 19.62 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.8633, allocations: 328.4 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.8634, allocations: 24.23 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.8635, allocations: 51.67 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.8638, allocations: 68.64 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.8638, allocations: 0.6094 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002756/0.8641, allocations: 105.3 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.8641, allocations: 6.828 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.8641, allocations: 1.125 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.8641, allocations: 5.062 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.8642, allocations: 11.12 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.8643, allocations: 1.609 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.425e-05/0.8644, allocations: 18.64 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.8644, allocations: 6.203 kB / 1.093 GB, free: 1.203 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 8.573e-05/0.8645, allocations: 131.2 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.047e-05/0.8645, allocations: 20.83 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.8645, allocations: 22.17 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.8646, allocations: 0.75 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.8646, allocations: 5.188 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.8646, allocations: 0 / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.8647, allocations: 213 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8647, allocations: 5.062 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-05/0.8648, allocations: 10.52 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.8648, allocations: 0.5625 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.8648, allocations: 9.422 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.8649, allocations: 0 / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8649, allocations: 1.875 kB / 1.093 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.8652, allocations: 125 kB / 1.093 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.506e-05/0.8652, allocations: 89.56 kB / 1.094 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.8652, allocations: 8.594 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.8653, allocations: 10.7 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.951e-05/0.8654, allocations: 8 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.8654, allocations: 8.906 kB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001771/0.8656, allocations: 187.2 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8656, allocations: 0.6562 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002255/0.8658, allocations: 25.98 kB / 1.094 GB, free: 0.5156 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.0006279/0.8665, allocations: 0.6743 MB / 1.094 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003176/0.8668, allocations: 63 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8668, allocations: 0 / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.8669, allocations: 27.92 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.0003233/0.8673, allocations: 53.58 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.002302/0.8696, allocations: 1.74 MB / 1.096 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.8699, allocations: 0.7156 MB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.043e-05/0.8699, allocations: 19.22 kB / 1.097 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.905e-05/0.87, allocations: 43.84 kB / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of SimCode: time 2.4e-07/0.87, allocations: 0 / 1.097 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.8923, allocations: 3.678 MB / 1.101 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/8.457, allocations: 7.844 kB / 1.101 GB, free: 13.18 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