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.006678/0.006678, allocations: 100.6 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.001746/0.001746, allocations: 189.8 kB / 16.67 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.735/2.735, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 64.41 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2908, allocations: 162.2 MB / 1.241 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002943/0.2937, allocations: 1.655 MB / 1.243 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009317/0.2947, allocations: 0.5392 MB / 1.244 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.726e-05/0.2948, allocations: 4 kB / 1.244 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.295, allocations: 23.73 kB / 1.244 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.2952, allocations: 59.73 kB / 1.244 GB, free: 7.016 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.2954, allocations: 71.84 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.2956, allocations: 131.5 kB / 1.244 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.2958, allocations: 61.44 kB / 1.244 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2959, allocations: 47.84 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.296, allocations: 63.69 kB / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.2961, allocations: 8 kB / 1.244 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.921e-05/0.2961, allocations: 31.92 kB / 1.244 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.752e-05/0.2962, allocations: 51.83 kB / 1.244 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.723e-05/0.2963, allocations: 59.55 kB / 1.244 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.2966, allocations: 143.6 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2966, allocations: 0 / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2966, allocations: 3.938 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.2966, allocations: 0 / 1.244 GB, free: 6.352 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.000643/0.2972, allocations: 474.4 kB / 1.245 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2973, allocations: 12.03 kB / 1.245 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.2973, allocations: 38.75 kB / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.2974, allocations: 24.8 kB / 1.245 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.2977, allocations: 248.9 kB / 1.245 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.2977, allocations: 4.375 kB / 1.245 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.2977, allocations: 8.312 kB / 1.245 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.298, allocations: 109.8 kB / 1.245 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.298, allocations: 0 / 1.245 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.2981, allocations: 8 kB / 1.245 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.2981, allocations: 7.938 kB / 1.245 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.2983, allocations: 59.94 kB / 1.245 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.2989, allocations: 376.5 kB / 1.246 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.2991, allocations: 42.55 kB / 1.246 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.2992, allocations: 24.91 kB / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.2992, allocations: 0 / 1.246 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000256/0.2995, allocations: 109 kB / 1.246 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.2995, allocations: 4 kB / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004503/0.2999, allocations: 117.5 kB / 1.246 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.3, allocations: 81.11 kB / 1.246 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.3003, allocations: 253 kB / 1.246 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3003, allocations: 29.7 kB / 1.246 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.3004, allocations: 128.1 kB / 1.246 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.3004, allocations: 7.891 kB / 1.246 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.3005, allocations: 21.7 kB / 1.246 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3006, allocations: 326.8 kB / 1.247 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.3007, allocations: 23.91 kB / 1.247 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.3009, allocations: 51.41 kB / 1.247 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.3011, allocations: 66.53 kB / 1.247 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3011, allocations: 0 / 1.247 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003012/0.3014, allocations: 105.5 kB / 1.247 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3015, allocations: 4 kB / 1.247 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3015, allocations: 7.938 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3015, allocations: 3.938 kB / 1.247 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3016, allocations: 12.27 kB / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.3016, allocations: 0 / 1.247 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-05/0.3017, allocations: 15.94 kB / 1.247 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.3017, allocations: 8.031 kB / 1.247 GB, free: 3.328 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.0001099/0.3018, allocations: 130.4 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/0.3019, allocations: 19.89 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.027e-05/0.3019, allocations: 21.17 kB / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3019, allocations: 4 kB / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3019, allocations: 0 / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.302, allocations: 0 / 1.247 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.3021, allocations: 217.5 kB / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3022, allocations: 3.984 kB / 1.247 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.529e-05/0.3022, allocations: 19.98 kB / 1.247 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3023, allocations: 0 / 1.247 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.3023, allocations: 11.94 kB / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3023, allocations: 0 / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3023, allocations: 0 / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.3026, allocations: 124.9 kB / 1.248 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.676e-05/0.3027, allocations: 93.02 kB / 1.248 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.3027, allocations: 3.938 kB / 1.248 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/0.3028, allocations: 7.984 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.3028, allocations: 11.98 kB / 1.248 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.3029, allocations: 4 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001819/0.303, allocations: 188.5 kB / 1.248 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3031, allocations: 0 / 1.248 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002323/0.3033, allocations: 23.94 kB / 1.248 GB, free: 2.359 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.0007236/0.304, allocations: 0.6828 MB / 1.249 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000293/0.3043, allocations: 59.88 kB / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3043, allocations: 0 / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.3045, allocations: 31.91 kB / 1.249 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.3048, allocations: 37.97 kB / 1.249 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.307, allocations: 1.755 MB / 1.25 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.3074, allocations: 0.7158 MB / 1.251 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.169e-05/0.3075, allocations: 24.59 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.489e-05/0.3075, allocations: 39.42 kB / 1.251 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of SimCode: time 2.054e-06/0.3076, allocations: 0 / 1.251 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02417/0.3317, allocations: 3.611 MB / 1.255 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/8.018, allocations: 3.203 kB / 1.255 GB, free: 11.37 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 400 --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