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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0007907/0.0007908, 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.004167/0.004167, allocations: 170.8 kB / 16.27 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.229/1.229, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003063, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5565/0.5568, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001563/0.5584, allocations: 1.349 MB / 0.9565 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006709/0.5591, allocations: 0.5356 MB / 0.957 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.995e-05/0.5592, allocations: 6.594 kB / 0.957 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.5594, allocations: 20.39 kB / 0.957 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.5596, allocations: 52.89 kB / 0.9571 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001324/0.5597, allocations: 60.22 kB / 0.9571 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.5599, allocations: 129.3 kB / 0.9573 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.56, allocations: 53.48 kB / 0.9573 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.862e-05/0.5601, allocations: 37.25 kB / 0.9573 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.34e-05/0.5602, allocations: 49.14 kB / 0.9574 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.5602, allocations: 3.719 kB / 0.9574 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.127e-05/0.5603, allocations: 22.2 kB / 0.9574 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.5604, allocations: 35.25 kB / 0.9575 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.813e-05/0.5604, allocations: 85.52 kB / 0.9575 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.5606, allocations: 126 kB / 0.9577 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.5606, allocations: 1.406 kB / 0.9577 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5606, allocations: 0 / 0.9577 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.5606, allocations: 0 / 0.9577 GB, free: 5.738 MB / 0.7169 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.0004379/0.561, allocations: 464.1 kB / 0.9581 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.5611, allocations: 8.969 kB / 0.9581 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.324e-05/0.5611, allocations: 42.42 kB / 0.9581 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.5612, allocations: 16.69 kB / 0.9582 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.5613, allocations: 229.8 kB / 0.9584 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-06/0.5613, allocations: 2.969 kB / 0.9584 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.5614, allocations: 12.48 kB / 0.9584 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.5616, allocations: 122.2 kB / 0.9585 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.5616, allocations: 0 / 0.9585 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.5617, allocations: 9.312 kB / 0.9585 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.5617, allocations: 1.375 kB / 0.9585 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002315/0.5619, allocations: 77.12 kB / 0.9586 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004675/0.5624, allocations: 392.1 kB / 0.959 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.5625, allocations: 50.98 kB / 0.959 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.5626, allocations: 36.98 kB / 0.9591 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.5627, allocations: 0.875 kB / 0.9591 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.5629, allocations: 108.9 kB / 0.9592 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.5629, allocations: 0 / 0.9592 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004185/0.5633, allocations: 143.7 kB / 0.9593 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.5633, allocations: 82.2 kB / 0.9594 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.5636, allocations: 256.8 kB / 0.9596 GB, free: 4 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.5636, allocations: 29.7 kB / 0.9596 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.214e-05/0.5636, allocations: 129.6 kB / 0.9598 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.5636, allocations: 5.281 kB / 0.9598 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.5637, allocations: 9.719 kB / 0.9598 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.424e-05/0.5637, allocations: 327.4 kB / 0.9601 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.5638, allocations: 35.97 kB / 0.9601 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.564, allocations: 62.89 kB / 0.9602 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.5642, allocations: 85.19 kB / 0.9603 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5642, allocations: 0 / 0.9603 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002655/0.5645, allocations: 120.4 kB / 0.9604 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.5645, allocations: 4.125 kB / 0.9604 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.5645, allocations: 5.469 kB / 0.9604 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.5645, allocations: 5.312 kB / 0.9604 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.5646, allocations: 14.98 kB / 0.9604 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5646, allocations: 9.297 kB / 0.9604 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.869e-05/0.5647, allocations: 14.94 kB / 0.9604 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.5647, allocations: 5.359 kB / 0.9604 GB, free: 3.285 MB / 0.7169 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.077e-05/0.5648, allocations: 132.8 kB / 0.9606 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.5648, allocations: 23.95 kB / 0.9606 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.5649, allocations: 18.69 kB / 0.9606 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.5649, allocations: 0 / 0.9606 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5649, allocations: 1.375 kB / 0.9606 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.5649, allocations: 0 / 0.9606 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.565, allocations: 215.7 kB / 0.9608 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.565, allocations: 0 / 0.9608 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.661e-05/0.5651, allocations: 14.98 kB / 0.9608 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5651, allocations: 4 kB / 0.9608 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.5651, allocations: 5.312 kB / 0.9608 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5651, allocations: 0 / 0.9608 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5651, allocations: 1.375 kB / 0.9608 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.5654, allocations: 141 kB / 0.961 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.5654, allocations: 97.03 kB / 0.9611 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.5655, allocations: 9.312 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.391e-05/0.5656, allocations: 17.55 kB / 0.9611 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.5656, allocations: 10.73 kB / 0.9611 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.5656, allocations: 8.125 kB / 0.9611 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001426/0.5658, allocations: 188 kB / 0.9613 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5658, allocations: 0 / 0.9613 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002131/0.566, allocations: 21.84 kB / 0.9613 GB, free: 2.516 MB / 0.7169 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.000527/0.5665, allocations: 0.6921 MB / 0.962 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002708/0.5668, allocations: 76.53 kB / 0.9621 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5668, allocations: 192 / 0.9621 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.5669, allocations: 39.34 kB / 0.9621 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.5672, allocations: 44.98 kB / 0.9621 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.569, allocations: 1.813 MB / 0.9639 GB, free: 296 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.5692, allocations: 0.7212 MB / 0.9646 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.134e-05/0.5693, allocations: 22.53 kB / 0.9646 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.601e-05/0.5693, allocations: 41.64 kB / 0.9647 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of SimCode: time 1.673e-06/0.5694, allocations: 0 / 0.9647 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06176/0.6311, allocations: 3.211 MB / 0.9678 GB, free: 14 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.6314, allocations: 202.8 kB / 0.968 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/2.339, allocations: 1.438 kB / 0.968 GB, free: 13.74 MB / 0.7325 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