Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.379/1.379, allocations: 249.5 MB / 257 MB, free: 6.828 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.001093/0.001093, allocations: 190 kB / 316.3 MB, free: 3.273 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.831/1.831, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0008552/0.000855, allocations: 94.47 kB / 0.6714 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.974e-05/1.976e-05, allocations: 12 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2087, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7465/0.9553, allocations: 133.9 MB / 1.016 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.9555, allocations: 79.03 kB / 1.016 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008792/0.9643, allocations: 3.244 MB / 1.019 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of FrontEnd: time 5.861e-06/0.9644, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.44e-05/0.9644, allocations: 14.67 kB / 1.019 GB, free: 0.6875 MB / 0.6355 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.0005372/0.965, allocations: 427.4 kB / 1.02 GB, free: 240 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.965, allocations: 12.03 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/0.9651, allocations: 22.44 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.9654, allocations: 236.5 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.9654, allocations: 3.938 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.9655, allocations: 15.97 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.998e-05/0.9656, allocations: 26 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.9657, allocations: 78.73 kB / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.9657, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.9658, allocations: 3.984 kB / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.9658, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005726/0.9664, allocations: 362.4 kB / 1.02 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 5.337e-05/0.9664, allocations: 25.38 kB / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.793e-05/0.9665, allocations: 16.42 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.9665, allocations: 0 / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.9666, allocations: 85.06 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.9666, allocations: 0 / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001555/0.9668, allocations: 60.81 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.9669, allocations: 77.11 kB / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.967, allocations: 200.3 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.9671, allocations: 25.7 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.9671, allocations: 130.7 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.9672, allocations: 11.91 kB / 1.021 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.9672, allocations: 0 / 1.021 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.9673, allocations: 325.7 kB / 1.021 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.294e-05/0.9673, allocations: 11.56 kB / 1.021 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.746e-05/0.9674, allocations: 31.11 kB / 1.021 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.914e-05/0.9674, allocations: 12.03 kB / 1.021 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.9674, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000102/0.9675, allocations: 68.94 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.9676, allocations: 4 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.9676, allocations: 4 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.9676, allocations: 3.953 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.9677, allocations: 15.98 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.9677, allocations: 0 / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.288e-05/0.9678, allocations: 23.98 kB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.9678, allocations: 0 / 1.022 GB, free: 14.36 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.542e-05/0.9679, allocations: 101 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001038/0.9681, allocations: 65.25 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.9681, allocations: 27.39 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.876e-05/0.9681, allocations: 20.66 kB / 1.022 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-06/0.9682, allocations: 4 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9682, allocations: 4 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.9682, allocations: 0 / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.9684, allocations: 193.3 kB / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.9684, allocations: 3.938 kB / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.592e-05/0.9685, allocations: 15.98 kB / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.9685, allocations: 0 / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.9685, allocations: 0 / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.9685, allocations: 3.953 kB / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.9685, allocations: 0 / 1.022 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.9687, allocations: 92.17 kB / 1.022 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.9687, allocations: 95.98 kB / 1.022 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.9688, allocations: 7.984 kB / 1.022 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.699e-05/0.9689, allocations: 15.92 kB / 1.022 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.9689, allocations: 7.953 kB / 1.022 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.969, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001603/0.9691, allocations: 170.1 kB / 1.022 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9691, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002174/0.9694, allocations: 16 kB / 1.022 GB, free: 13.5 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.0006458/0.97, allocations: 0.6454 MB / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000104/0.9701, allocations: 27.05 kB / 1.023 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9701, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.803e-05/0.9702, allocations: 11.69 kB / 1.023 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.9705, allocations: 34.22 kB / 1.023 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.971, allocations: 239.1 kB / 1.023 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.9714, allocations: 0.7311 MB / 1.024 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.776e-05/0.9715, allocations: 24.56 kB / 1.024 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.9716, allocations: 40.92 kB / 1.024 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.9716, allocations: 0 / 1.024 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.9926, allocations: 2.717 MB / 1.027 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.9929, allocations: 150 kB / 1.027 GB, free: 8.855 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.525/2.517, allocations: 0 / 1.027 GB, free: 8.855 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)