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.587/2.587, allocations: 248.5 MB / 261.1 MB, free: 5.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001405/0.001405, allocations: 174.8 kB / 320.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.886/1.886, allocations: 205.2 MB / 0.5711 GB, free: 11.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: 98.47 kB / 0.6754 GB, free: 0.875 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.257e-05/4.279e-05, allocations: 4 kB / 0.7869 GB, free: 97.83 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2296, allocations: 106.2 MB / 0.8907 GB, free: 7.496 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9111/1.141, allocations: 133.5 MB / 1.021 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/1.141, allocations: 78.14 kB / 1.021 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01512/1.156, allocations: 3.292 MB / 1.024 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.555e-06/1.156, allocations: 0 / 1.024 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.635e-05/1.156, allocations: 3.938 kB / 1.024 GB, free: 14.97 MB / 0.6511 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.0007681/1.157, allocations: 429 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.157, allocations: 8.031 kB / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.757e-05/1.157, allocations: 38.05 kB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.899e-05/1.157, allocations: 31.77 kB / 1.025 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004628/1.158, allocations: 232.5 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/1.158, allocations: 7.188 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.996e-05/1.158, allocations: 4 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/1.158, allocations: 82.86 kB / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/1.158, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/1.158, allocations: 7.625 kB / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/1.158, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/1.158, allocations: 34.11 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009022/1.159, allocations: 396.6 kB / 1.025 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.303e-05/1.16, allocations: 28.41 kB / 1.026 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.438e-05/1.16, allocations: 19.67 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/1.16, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/1.16, allocations: 81.14 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.693e-06/1.16, allocations: 4 kB / 1.026 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002609/1.16, allocations: 60.44 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/1.16, allocations: 85.05 kB / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003694/1.161, allocations: 223.8 kB / 1.026 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/1.161, allocations: 25.7 kB / 1.026 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/1.161, allocations: 130.8 kB / 1.026 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/1.161, allocations: 6.844 kB / 1.026 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/1.161, allocations: 0 / 1.026 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001687/1.161, allocations: 329.5 kB / 1.026 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.31e-05/1.161, allocations: 6.75 kB / 1.026 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.882e-05/1.161, allocations: 30.8 kB / 1.026 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.024e-05/1.161, allocations: 15.28 kB / 1.026 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/1.161, allocations: 0 / 1.026 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001863/1.161, allocations: 76.02 kB / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/1.161, allocations: 6.5 kB / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.161, allocations: 0 / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/1.161, allocations: 4 kB / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/1.162, allocations: 20.08 kB / 1.027 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/1.162, allocations: 7.875 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/1.162, allocations: 19.89 kB / 1.027 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/1.162, allocations: 0 / 1.027 GB, free: 12.52 MB / 0.6511 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 () * 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 9.857e-05/1.162, allocations: 107.9 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/1.162, allocations: 19.77 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.716e-05/1.162, allocations: 23.92 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/1.162, allocations: 0 / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/1.162, allocations: 0 / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.162, allocations: 0 / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/1.162, allocations: 222.6 kB / 1.027 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/1.162, allocations: 0 / 1.027 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001427/1.163, allocations: 15.98 kB / 1.027 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/1.163, allocations: 3.953 kB / 1.027 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/1.163, allocations: 0 / 1.027 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/1.163, allocations: 4 kB / 1.027 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.163, allocations: 0 / 1.027 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/1.163, allocations: 95.55 kB / 1.027 GB, free: 12 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.823e-05/1.163, allocations: 92.61 kB / 1.027 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/1.163, allocations: 11.94 kB / 1.027 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/1.163, allocations: 12.19 kB / 1.027 GB, free: 11.87 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.504e-05/1.163, allocations: 15.55 kB / 1.027 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/1.163, allocations: 11.92 kB / 1.027 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002668/1.164, allocations: 178.8 kB / 1.027 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/1.164, allocations: 0 / 1.027 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003115/1.164, allocations: 23.91 kB / 1.027 GB, free: 11.68 MB / 0.6511 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 () * 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.0007404/1.165, allocations: 0.6436 MB / 1.028 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001961/1.165, allocations: 27.55 kB / 1.028 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.165, allocations: 0 / 1.028 GB, free: 11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.771e-05/1.165, allocations: 11.69 kB / 1.028 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/1.165, allocations: 48.56 kB / 1.028 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000804/1.166, allocations: 234.3 kB / 1.028 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/1.167, allocations: 0.7238 MB / 1.029 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000118/1.167, allocations: 16.55 kB / 1.029 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/1.167, allocations: 49.41 kB / 1.029 GB, free: 9.914 MB / 0.6511 GB Notification: Performance of SimCode: time 9.01e-07/1.167, allocations: 0 / 1.029 GB, free: 9.914 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0312/1.198, allocations: 3.22 MB / 1.032 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003721/1.199, allocations: 168.7 kB / 1.032 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.736/3.934, allocations: 0 / 1.032 GB, free: 6.578 MB / 0.6511 GB