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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00694/0.00694, allocations: 98.38 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.001862/0.001862, allocations: 193 kB / 16.68 MB, free: 5.934 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.313/1.313, 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 12.0.0-master/package.mo): time 2.571/2.571, allocations: 482.6 MB / 0.7551 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002523/0.002523, allocations: 72.16 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3177, allocations: 162.3 MB / 1.242 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003332/0.321, allocations: 1.647 MB / 1.243 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3223, allocations: 0.5392 MB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.3224, allocations: 15.88 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.3226, allocations: 19.8 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.3229, allocations: 63.67 kB / 1.244 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.3232, allocations: 67.84 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.3234, allocations: 139.5 kB / 1.244 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.3236, allocations: 53.45 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.3238, allocations: 59.7 kB / 1.244 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.3239, allocations: 55.77 kB / 1.244 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.324, allocations: 8 kB / 1.244 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.694e-05/0.3241, allocations: 24 kB / 1.244 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.3242, allocations: 51.81 kB / 1.244 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.507e-05/0.3243, allocations: 55.61 kB / 1.245 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.3246, allocations: 159.5 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3246, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3246, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.3246, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 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.0007718/0.3254, allocations: 470.5 kB / 1.245 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3254, allocations: 8.031 kB / 1.245 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.701e-05/0.3255, allocations: 38.75 kB / 1.245 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.66e-05/0.3256, allocations: 20.78 kB / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.326, allocations: 248.9 kB / 1.245 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.326, allocations: 4.375 kB / 1.245 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.326, allocations: 8.375 kB / 1.245 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/0.3264, allocations: 101.8 kB / 1.246 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3264, allocations: 0 / 1.246 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.3264, allocations: 8 kB / 1.246 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3264, allocations: 4 kB / 1.246 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.3268, allocations: 67.86 kB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007552/0.3276, allocations: 380.5 kB / 1.246 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.3278, allocations: 38.56 kB / 1.246 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.3279, allocations: 32.89 kB / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.328, allocations: 0 / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.3283, allocations: 93.08 kB / 1.246 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.533e-06/0.3283, allocations: 0 / 1.246 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0006145/0.3289, allocations: 137.3 kB / 1.246 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.329, allocations: 77.11 kB / 1.246 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.3294, allocations: 249 kB / 1.247 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.3294, allocations: 25.7 kB / 1.247 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3295, allocations: 136 kB / 1.247 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.3296, allocations: 11.89 kB / 1.247 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.625e-05/0.3296, allocations: 21.72 kB / 1.247 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3298, allocations: 330.8 kB / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.33, allocations: 19.98 kB / 1.247 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.3302, allocations: 51.58 kB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.3305, allocations: 74.48 kB / 1.247 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3306, allocations: 0 / 1.247 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004394/0.331, allocations: 105.5 kB / 1.247 GB, free: 2.973 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.331, allocations: 8 kB / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3311, allocations: 0 / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3311, allocations: 3.938 kB / 1.247 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.3312, allocations: 11.98 kB / 1.247 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.3312, allocations: 4 kB / 1.247 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.3314, allocations: 15.88 kB / 1.247 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.3314, allocations: 4 kB / 1.247 GB, free: 2.926 MB / 0.9669 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 0.0001423/0.3316, allocations: 133.8 kB / 1.248 GB, free: 2.785 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.3316, allocations: 15.91 kB / 1.248 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.3317, allocations: 25.17 kB / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3317, allocations: 0 / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3317, allocations: 4 kB / 1.248 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3317, allocations: 0 / 1.248 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.332, allocations: 213.6 kB / 1.248 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.332, allocations: 0 / 1.248 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3321, allocations: 11.98 kB / 1.248 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3321, allocations: 4 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.3321, allocations: 3.938 kB / 1.248 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3321, allocations: 3.984 kB / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3322, allocations: 0 / 1.248 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004306/0.3326, allocations: 124.9 kB / 1.248 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.482e-05/0.3327, allocations: 89.02 kB / 1.248 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.3327, allocations: 11.88 kB / 1.248 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3329, allocations: 11.98 kB / 1.248 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.3329, allocations: 3.984 kB / 1.248 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.333, allocations: 8 kB / 1.248 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002595/0.3332, allocations: 188.5 kB / 1.248 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3332, allocations: 0 / 1.248 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003611/0.3336, allocations: 23.94 kB / 1.248 GB, free: 1.965 MB / 0.9669 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.0009287/0.3345, allocations: 0.6831 MB / 1.249 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003898/0.3349, allocations: 67.81 kB / 1.249 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.335, allocations: 0 / 1.249 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.3351, allocations: 24.17 kB / 1.249 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.3356, allocations: 48.2 kB / 1.249 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.3386, allocations: 1.751 MB / 1.251 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.339, allocations: 0.7236 MB / 1.251 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.274e-05/0.3391, allocations: 12.55 kB / 1.251 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.901e-05/0.3392, allocations: 47.41 kB / 1.251 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of SimCode: time 5.11e-07/0.3392, allocations: 0 / 1.251 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3539/0.6932, allocations: 3.611 MB / 1.255 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.619, allocations: 15.02 kB / 1.255 GB, free: 10.96 MB / 0.9825 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=400 --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