Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.167/2.167, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001586/0.001585, allocations: 184.3 kB / 325.5 MB, free: 2.898 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.414/2.414, allocations: 205.4 MB / 0.5764 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 103 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006815/0.0006814, allocations: 11.28 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2339, allocations: 106.3 MB / 0.8988 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2308/0.4647, allocations: 133.5 MB / 1.029 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003183/0.4651, allocations: 79.95 kB / 1.029 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.4806, allocations: 3.287 MB / 1.032 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.958e-06/0.4807, allocations: 0 / 1.032 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.328e-05/0.4807, allocations: 8 kB / 1.033 GB, free: 8.41 MB / 0.6823 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.00119/0.482, allocations: 466.5 kB / 1.033 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.482, allocations: 8.031 kB / 1.033 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.086e-05/0.4821, allocations: 38.56 kB / 1.033 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.4822, allocations: 23.75 kB / 1.033 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004/0.4826, allocations: 231.7 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.4826, allocations: 4 kB / 1.033 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.4826, allocations: 8 kB / 1.033 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004317/0.4831, allocations: 105.6 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4831, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.4831, allocations: 4 kB / 1.033 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.4832, allocations: 7.922 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004305/0.4836, allocations: 79.94 kB / 1.033 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009419/0.4846, allocations: 400.4 kB / 1.034 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.4848, allocations: 54.44 kB / 1.034 GB, free: 6.844 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.4849, allocations: 0 / 1.034 GB, free: 6.844 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.4852, allocations: 105.2 kB / 1.034 GB, free: 6.723 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.684e-06/0.4853, allocations: 0 / 1.034 GB, free: 6.723 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0007788/0.4861, allocations: 141.4 kB / 1.034 GB, free: 6.578 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.4861, allocations: 77.11 kB / 1.034 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.4865, allocations: 228.1 kB / 1.034 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.4866, allocations: 33.7 kB / 1.034 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.4867, allocations: 120.1 kB / 1.035 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.4867, allocations: 11.89 kB / 1.035 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.4867, allocations: 0 / 1.035 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.4869, allocations: 326.8 kB / 1.035 GB, free: 5.75 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.4871, allocations: 27.97 kB / 1.035 GB, free: 5.723 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.4874, allocations: 59.41 kB / 1.035 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.4876, allocations: 32.02 kB / 1.035 GB, free: 5.621 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4876, allocations: 0 / 1.035 GB, free: 5.621 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005281/0.4881, allocations: 125.7 kB / 1.035 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.4882, allocations: 4 kB / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4882, allocations: 0 / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.4882, allocations: 4 kB / 1.035 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.4884, allocations: 19.91 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4885, allocations: 4 kB / 1.035 GB, free: 5.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.4886, allocations: 23.89 kB / 1.035 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.4887, allocations: 7.984 kB / 1.035 GB, free: 5.43 MB / 0.6823 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.0001721/0.4888, allocations: 125.8 kB / 1.035 GB, free: 5.297 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.4889, allocations: 27.7 kB / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.489, allocations: 13.25 kB / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.489, allocations: 0 / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.489, allocations: 0 / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.489, allocations: 0 / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002668/0.4893, allocations: 221.6 kB / 1.036 GB, free: 4.992 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4893, allocations: 7.938 kB / 1.036 GB, free: 4.984 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.4895, allocations: 15.98 kB / 1.036 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4895, allocations: 0 / 1.036 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4895, allocations: 3.953 kB / 1.036 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4895, allocations: 0 / 1.036 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4895, allocations: 0 / 1.036 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005117/0.49, allocations: 140.8 kB / 1.036 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.929e-05/0.4901, allocations: 104.8 kB / 1.036 GB, free: 4.688 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.4902, allocations: 0 / 1.036 GB, free: 4.688 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.4904, allocations: 23.94 kB / 1.036 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.4904, allocations: 0 / 1.036 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.4905, allocations: 8 kB / 1.036 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002868/0.4908, allocations: 180.5 kB / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.2e-07/0.4908, allocations: 0 / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003039/0.4911, allocations: 23.94 kB / 1.036 GB, free: 4.461 MB / 0.6823 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.001022/0.4921, allocations: 0.6951 MB / 1.037 GB, free: 3.738 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005047/0.4926, allocations: 75.94 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.4927, allocations: 4 kB / 1.037 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.4929, allocations: 35.91 kB / 1.037 GB, free: 3.625 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.4933, allocations: 41.45 kB / 1.037 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.4957, allocations: 1.224 MB / 1.038 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.4961, allocations: 0.7316 MB / 1.039 GB, free: 1.539 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001816/0.4963, allocations: 20.53 kB / 1.039 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.4965, allocations: 43.41 kB / 1.039 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of SimCode: time 1.272e-06/0.4965, allocations: 0 / 1.039 GB, free: 1.477 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.5246, allocations: 3.245 MB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003464/0.525, allocations: 181.2 kB / 1.042 GB, free: 14.12 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.625/3.15, allocations: 0 / 1.042 GB, free: 14.12 MB / 0.698 GB