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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009168/0.0009168, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005497/0.005497, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.259/1.259, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.382/2.382, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003057, allocations: 8 kB / 0.8729 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5009/0.5012, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001668/0.5029, allocations: 1.351 MB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007062/0.5036, allocations: 0.5301 MB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.336e-05/0.5037, allocations: 7.938 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.5038, allocations: 23.84 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.504, allocations: 55.52 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.5042, allocations: 63.86 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.5043, allocations: 131.5 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.5045, allocations: 41.47 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.449e-05/0.5046, allocations: 47.77 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.5047, allocations: 43.78 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.5047, allocations: 4 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.842e-05/0.5048, allocations: 23.92 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.193e-05/0.5048, allocations: 39.83 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.862e-05/0.5049, allocations: 77.31 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.5051, allocations: 129.7 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5051, allocations: 0 / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.153e-06/0.5051, allocations: 0 / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.5051, allocations: 4 kB / 1.026 GB, free: 13.25 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.0004915/0.5056, allocations: 458.6 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.5056, allocations: 12.03 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.792e-05/0.5057, allocations: 34.75 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.705e-05/0.5057, allocations: 20.75 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.5059, allocations: 232.8 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.5059, allocations: 12.38 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.988e-06/0.506, allocations: 384 / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.5062, allocations: 121.7 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.5062, allocations: 0 / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.5063, allocations: 4 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5063, allocations: 4 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.5065, allocations: 75.94 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.507, allocations: 408.3 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.5072, allocations: 42.55 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.5073, allocations: 36.91 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.5073, allocations: 0 / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.5076, allocations: 113 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.5076, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004252/0.508, allocations: 145.4 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.5081, allocations: 77.11 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.5083, allocations: 253 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.5083, allocations: 29.7 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.5084, allocations: 128 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.5084, allocations: 11.91 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.252e-05/0.5084, allocations: 9.719 kB / 1.028 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.5085, allocations: 330.8 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.5086, allocations: 27.98 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.5088, allocations: 63.34 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.509, allocations: 86.55 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.509, allocations: 0 / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002865/0.5093, allocations: 121.4 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.5093, allocations: 4 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.5093, allocations: 0 / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.5093, allocations: 7.938 kB / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-05/0.5095, allocations: 15.98 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.5095, allocations: 8.031 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/0.5096, allocations: 23.83 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.5096, allocations: 0 / 1.028 GB, free: 10.12 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.59e-05/0.5097, allocations: 130.4 kB / 1.029 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.301e-05/0.5097, allocations: 15.81 kB / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.5097, allocations: 21.17 kB / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.5097, allocations: 0 / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.5097, allocations: 7.938 kB / 1.029 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.5098, allocations: 4 kB / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.5099, allocations: 209.6 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5099, allocations: 0 / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.001e-05/0.51, allocations: 19.92 kB / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.51, allocations: 0 / 1.029 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.51, allocations: 3.938 kB / 1.029 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.51, allocations: 0 / 1.029 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.51, allocations: 7.984 kB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002896/0.5103, allocations: 144.8 kB / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/0.5104, allocations: 96.91 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.5104, allocations: 3.938 kB / 1.029 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.5105, allocations: 15.98 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.5105, allocations: 4.328 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.5106, allocations: 4 kB / 1.029 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001488/0.5107, allocations: 188.5 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5107, allocations: 0 / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002089/0.5109, allocations: 23.91 kB / 1.029 GB, free: 9.148 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.0005916/0.5115, allocations: 0.6942 MB / 1.03 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002709/0.5118, allocations: 79.81 kB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5118, allocations: 0 / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.512, allocations: 36.16 kB / 1.03 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.5122, allocations: 45.64 kB / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.5141, allocations: 1.822 MB / 1.032 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.5144, allocations: 0.7199 MB / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.902e-05/0.5144, allocations: 16.55 kB / 1.033 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.5145, allocations: 43.36 kB / 1.033 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5145, allocations: 4 kB / 1.033 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4842/0.9987, allocations: 3.217 MB / 1.036 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/0.999, allocations: 205.9 kB / 1.036 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/3.126, allocations: 0 / 1.036 GB, free: 2.203 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