Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.015/0.015, allocations: 89.72 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001595/0.001594, allocations: 172.2 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.151/2.151, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.449/2.449, allocations: 252.8 MB / 0.511 GB, free: 8.328 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005251/0.0005253, allocations: 16.81 kB / 0.6243 GB, free: 21.19 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.281, allocations: 106.2 MB / 0.7281 GB, free: 8.137 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002606/0.2837, allocations: 1.332 MB / 0.7294 GB, free: 6.789 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2851, allocations: 0.539 MB / 0.7299 GB, free: 6.242 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.2853, allocations: 11.94 kB / 0.7299 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.2855, allocations: 27.84 kB / 0.7299 GB, free: 6.203 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003312/0.2858, allocations: 59.78 kB / 0.73 GB, free: 6.145 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.286, allocations: 51.88 kB / 0.73 GB, free: 6.094 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0002361/0.2863, allocations: 91.81 kB / 0.7301 GB, free: 6.004 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.2865, allocations: 45.39 kB / 0.7302 GB, free: 5.957 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.2866, allocations: 39.84 kB / 0.7302 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.2867, allocations: 43.77 kB / 0.7302 GB, free: 5.875 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.2868, allocations: 0 / 0.7302 GB, free: 5.875 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-05/0.2869, allocations: 19.92 kB / 0.7303 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 9.298e-05/0.287, allocations: 35.84 kB / 0.7303 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.032e-05/0.287, allocations: 45.64 kB / 0.7303 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.2873, allocations: 96.08 kB / 0.7304 GB, free: 5.676 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.2873, allocations: 0 / 0.7304 GB, free: 5.676 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2873, allocations: 4 kB / 0.7304 GB, free: 5.672 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.2873, allocations: 0 / 0.7304 GB, free: 5.672 MB / 0.5573 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.0007868/0.2881, allocations: 454.6 kB / 0.7309 GB, free: 5.18 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 8.093e-05/0.2882, allocations: 8.031 kB / 0.7309 GB, free: 5.172 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.256e-05/0.2883, allocations: 42.55 kB / 0.7309 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.2883, allocations: 23.77 kB / 0.7309 GB, free: 5.098 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.2887, allocations: 231.6 kB / 0.7312 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.2887, allocations: 4 kB / 0.7312 GB, free: 4.824 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.2888, allocations: 4 kB / 0.7312 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.2892, allocations: 113.6 kB / 0.7313 GB, free: 4.703 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2892, allocations: 3.984 kB / 0.7313 GB, free: 4.699 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.2893, allocations: 0 / 0.7313 GB, free: 4.699 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2893, allocations: 4 kB / 0.7313 GB, free: 4.695 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.2897, allocations: 79.89 kB / 0.7314 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008639/0.2906, allocations: 396.4 kB / 0.7317 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.2908, allocations: 50.55 kB / 0.7318 GB, free: 4.121 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.2909, allocations: 0 / 0.7318 GB, free: 4.121 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003907/0.2913, allocations: 101.1 kB / 0.7319 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.783e-06/0.2913, allocations: 0 / 0.7319 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0007333/0.292, allocations: 145.4 kB / 0.732 GB, free: 3.855 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.2921, allocations: 77.11 kB / 0.7321 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.2925, allocations: 260.9 kB / 0.7323 GB, free: 3.496 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.2926, allocations: 25.7 kB / 0.7324 GB, free: 3.465 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.2927, allocations: 132 kB / 0.7325 GB, free: 3.332 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.2927, allocations: 11.89 kB / 0.7325 GB, free: 3.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.2928, allocations: 4 kB / 0.7325 GB, free: 3.316 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.2929, allocations: 326.8 kB / 0.7328 GB, free: 2.988 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.2931, allocations: 35.97 kB / 0.7329 GB, free: 2.953 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.2933, allocations: 51.41 kB / 0.7329 GB, free: 2.891 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.2937, allocations: 40.02 kB / 0.7329 GB, free: 2.852 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.2937, allocations: 3.953 kB / 0.7329 GB, free: 2.848 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000925/0.2946, allocations: 121.3 kB / 0.7331 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.2947, allocations: 8 kB / 0.7331 GB, free: 2.715 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2947, allocations: 3.938 kB / 0.7331 GB, free: 2.711 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.2948, allocations: 0 / 0.7331 GB, free: 2.711 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.2951, allocations: 24.08 kB / 0.7331 GB, free: 2.688 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.2951, allocations: 3.984 kB / 0.7331 GB, free: 2.684 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.2954, allocations: 12 kB / 0.7331 GB, free: 2.672 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.2954, allocations: 3.984 kB / 0.7331 GB, free: 2.668 MB / 0.5573 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002266/0.2957, allocations: 129.8 kB / 0.7332 GB, free: 2.531 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.2957, allocations: 23.75 kB / 0.7333 GB, free: 2.508 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.2958, allocations: 17.25 kB / 0.7333 GB, free: 2.492 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2958, allocations: 4 kB / 0.7333 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2958, allocations: 0 / 0.7333 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2958, allocations: 0 / 0.7333 GB, free: 2.488 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.2961, allocations: 213.6 kB / 0.7335 GB, free: 2.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2961, allocations: 0 / 0.7335 GB, free: 2.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.2963, allocations: 19.94 kB / 0.7335 GB, free: 2.211 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2963, allocations: 0 / 0.7335 GB, free: 2.211 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2963, allocations: 4 kB / 0.7335 GB, free: 2.207 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2963, allocations: 4 kB / 0.7335 GB, free: 2.203 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2963, allocations: 4 kB / 0.7335 GB, free: 2.199 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.2968, allocations: 136.8 kB / 0.7336 GB, free: 2.047 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.852e-05/0.2969, allocations: 92.91 kB / 0.7337 GB, free: 1.938 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.297, allocations: 7.953 kB / 0.7337 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.2971, allocations: 19.92 kB / 0.7338 GB, free: 1.91 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.2972, allocations: 3.984 kB / 0.7338 GB, free: 1.906 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.2973, allocations: 4 kB / 0.7338 GB, free: 1.902 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002646/0.2975, allocations: 192.5 kB / 0.734 GB, free: 1.715 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2975, allocations: 4 kB / 0.734 GB, free: 1.711 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003164/0.2979, allocations: 19.94 kB / 0.734 GB, free: 1.691 MB / 0.5573 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009698/0.2988, allocations: 0.6936 MB / 0.7347 GB, free: 0.9727 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004599/0.2993, allocations: 71.88 kB / 0.7347 GB, free: 0.9023 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2993, allocations: 0 / 0.7347 GB, free: 0.9023 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.2996, allocations: 36.17 kB / 0.7348 GB, free: 0.8672 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.2999, allocations: 44.28 kB / 0.7348 GB, free: 0.8242 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.3023, allocations: 1.224 MB / 0.736 GB, free: 15.54 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.3027, allocations: 0.7238 MB / 0.7367 GB, free: 14.79 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001237/0.3028, allocations: 16.53 kB / 0.7367 GB, free: 14.77 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.3029, allocations: 47.41 kB / 0.7368 GB, free: 14.73 MB / 0.573 GB Notification: Performance of SimCode: time 1.001e-06/0.3029, allocations: 0 / 0.7368 GB, free: 14.73 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.3304, allocations: 3.195 MB / 0.7399 GB, free: 11.66 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/0.3308, allocations: 179 kB / 0.7401 GB, free: 11.43 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.855/3.186, allocations: 2.391 kB / 0.7401 GB, free: 11.43 MB / 0.573 GB