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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.008147/0.008147, allocations: 99.69 kB / 15.73 MB, free: 6.445 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.002047/0.002047, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.907/2.907, allocations: 469.4 MB / 0.7422 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 59.91 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3007, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003315/0.3041, allocations: 1.639 MB / 1.221 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009713/0.3051, allocations: 0.5417 MB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.3052, allocations: 4 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.3055, allocations: 31.7 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003047/0.3058, allocations: 62.81 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001787/0.306, allocations: 59.92 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.3062, allocations: 135.5 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.3064, allocations: 57.45 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.3065, allocations: 55.77 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.3066, allocations: 63.64 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.3067, allocations: 8 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.3068, allocations: 31.98 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.048e-05/0.3068, allocations: 39.91 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.904e-05/0.3069, allocations: 63.53 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.3071, allocations: 143.3 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3072, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3072, allocations: 0 / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3072, allocations: 3.938 kB / 1.223 GB, free: 11.7 MB / 0.9825 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.0006361/0.3078, allocations: 474.4 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3079, allocations: 16.03 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.813e-05/0.3079, allocations: 38.73 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.308, allocations: 20.8 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.3083, allocations: 248.9 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-06/0.3083, allocations: 4.375 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.3083, allocations: 4.375 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/0.3086, allocations: 113.8 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3087, allocations: 0 / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.3087, allocations: 4 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.3087, allocations: 4 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.3089, allocations: 55.94 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.3095, allocations: 388.5 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.3097, allocations: 46.48 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3098, allocations: 28.89 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.3098, allocations: 0 / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.3101, allocations: 109.1 kB / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3101, allocations: 0 / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004765/0.3106, allocations: 113.5 kB / 1.224 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.3106, allocations: 85.05 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.3109, allocations: 252.9 kB / 1.225 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3109, allocations: 37.7 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.568e-05/0.311, allocations: 128.1 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.311, allocations: 3.953 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.3111, allocations: 17.72 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3112, allocations: 326.8 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3113, allocations: 23.97 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3115, allocations: 51.41 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.3117, allocations: 74.45 kB / 1.225 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3117, allocations: 0 / 1.225 GB, free: 8.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000292/0.312, allocations: 105.5 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.312, allocations: 7.984 kB / 1.225 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.312, allocations: 4 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3121, allocations: 3.938 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.3122, allocations: 11.98 kB / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.3122, allocations: 3.984 kB / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.837e-05/0.3123, allocations: 20.02 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.3123, allocations: 0 / 1.225 GB, free: 8.66 MB / 0.9825 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.0001105/0.3124, allocations: 131.2 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.3125, allocations: 15.91 kB / 1.225 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.676e-05/0.3125, allocations: 17.19 kB / 1.225 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3125, allocations: 7.938 kB / 1.225 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3125, allocations: 3.984 kB / 1.225 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3125, allocations: 0 / 1.225 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.3127, allocations: 213.5 kB / 1.226 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3128, allocations: 4 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.497e-05/0.3128, allocations: 15.92 kB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3129, allocations: 0 / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3129, allocations: 11.94 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3129, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3129, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.3132, allocations: 121 kB / 1.226 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.577e-05/0.3133, allocations: 93 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.3133, allocations: 4.266 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.3134, allocations: 7.984 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3134, allocations: 8 kB / 1.226 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.3135, allocations: 7.984 kB / 1.226 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000171/0.3136, allocations: 184.5 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3136, allocations: 0 / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002329/0.3139, allocations: 27.95 kB / 1.226 GB, free: 7.707 MB / 0.9825 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.0007225/0.3146, allocations: 0.6911 MB / 1.227 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002967/0.3149, allocations: 59.83 kB / 1.227 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3149, allocations: 0 / 1.227 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.3151, allocations: 27.97 kB / 1.227 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.3154, allocations: 49 kB / 1.227 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.3175, allocations: 1.748 MB / 1.229 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.3178, allocations: 0.7158 MB / 1.229 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.305e-05/0.3179, allocations: 20.48 kB / 1.229 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.746e-05/0.318, allocations: 39.42 kB / 1.229 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of SimCode: time 4.41e-07/0.318, allocations: 0 / 1.229 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.3385, allocations: 3.634 MB / 1.233 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.847/8.186, allocations: 8.484 kB / 1.233 GB, free: 0.6836 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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