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.00122/0.00122, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.236/1.236, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.588/2.588, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 61.56 kB / 0.8992 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2546, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00281/0.2575, allocations: 1.647 MB / 1.055 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008218/0.2583, allocations: 0.5609 MB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.2584, allocations: 7.938 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.2586, allocations: 19.8 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.2588, allocations: 59.67 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000153/0.259, allocations: 67.91 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.2591, allocations: 127.6 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.2593, allocations: 45.47 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2594, allocations: 59.77 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.2595, allocations: 59.7 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.2595, allocations: 11.94 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.609e-05/0.2596, allocations: 31.97 kB / 1.056 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.175e-05/0.2597, allocations: 40.41 kB / 1.056 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.363e-05/0.2597, allocations: 63.53 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.2599, allocations: 147.7 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2599, allocations: 0 / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2599, allocations: 0 / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.26, allocations: 0 / 1.056 GB, free: 5.301 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.0005517/0.2605, allocations: 462.6 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2606, allocations: 12.62 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.283e-05/0.2606, allocations: 42.75 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.2606, allocations: 16.75 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.2609, allocations: 224.9 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.2609, allocations: 12.31 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.2609, allocations: 4.375 kB / 1.057 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.2612, allocations: 113.8 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.2612, allocations: 3.938 kB / 1.057 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.2612, allocations: 4 kB / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.2612, allocations: 0 / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.2615, allocations: 63.94 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005249/0.262, allocations: 388.4 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001371/0.2621, allocations: 46.55 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.2623, allocations: 24.89 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.2623, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.2625, allocations: 105 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2625, allocations: 0 / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004134/0.2629, allocations: 117.4 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.263, allocations: 81.11 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.2632, allocations: 253 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2633, allocations: 29.7 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.2633, allocations: 132 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.2634, allocations: 11.83 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.2634, allocations: 21.66 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2635, allocations: 326.8 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2636, allocations: 19.97 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.2638, allocations: 55.41 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.264, allocations: 62.53 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.264, allocations: 0 / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002786/0.2643, allocations: 109.4 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2643, allocations: 4 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2643, allocations: 0 / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.2643, allocations: 11.92 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.2644, allocations: 11.98 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2645, allocations: 0 / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.967e-05/0.2646, allocations: 16.08 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.2646, allocations: 0 / 1.058 GB, free: 2.312 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 9.815e-05/0.2647, allocations: 129.8 kB / 1.059 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.2647, allocations: 19.72 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.2647, allocations: 21.19 kB / 1.059 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2648, allocations: 4 kB / 1.059 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2648, allocations: 3.938 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2648, allocations: 3.984 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.2649, allocations: 213.5 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2649, allocations: 4 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.952e-05/0.265, allocations: 11.98 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.265, allocations: 0 / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.265, allocations: 7.938 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2651, allocations: 4 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2651, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.2653, allocations: 124.8 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.2654, allocations: 92.91 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.2654, allocations: 3.938 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.2655, allocations: 12.31 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.2656, allocations: 4 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.2656, allocations: 4 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001562/0.2657, allocations: 188.5 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2658, allocations: 0 / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002158/0.266, allocations: 20 kB / 1.059 GB, free: 1.359 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.0006442/0.2666, allocations: 0.7007 MB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002743/0.2669, allocations: 55.88 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2669, allocations: 0 / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.267, allocations: 31.91 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.2674, allocations: 43.88 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.2693, allocations: 1.735 MB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.2696, allocations: 0.7197 MB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.322e-05/0.2697, allocations: 16.55 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.367e-05/0.2698, allocations: 43.36 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2698, allocations: 0 / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.3023, allocations: 3.575 MB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.941, allocations: 0.5938 kB / 1.066 GB, free: 10.39 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