Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.456/1.456, allocations: 288.4 MB / 303.6 MB, free: 8.168 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009525/0.0009525, allocations: 184.5 kB / 372.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.1/1.1, allocations: 205.4 MB / 0.631 GB, free: 9.859 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006511/0.0006511, allocations: 98.22 kB / 0.7444 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003266, allocations: 12.09 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1464, allocations: 115.3 MB / 0.9802 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001354/0.1478, allocations: 1.332 MB / 0.9815 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000641/0.1485, allocations: 0.5622 MB / 0.982 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.742e-05/0.1486, allocations: 0 / 0.982 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1487, allocations: 23.86 kB / 0.9821 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.1489, allocations: 55.75 kB / 0.9821 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001132/0.149, allocations: 51.92 kB / 0.9822 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.1492, allocations: 111.6 kB / 0.9823 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.1493, allocations: 49.45 kB / 0.9823 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.76e-05/0.1494, allocations: 47.78 kB / 0.9824 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.422e-05/0.1495, allocations: 43.77 kB / 0.9824 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.1495, allocations: 4 kB / 0.9824 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.641e-05/0.1495, allocations: 19.92 kB / 0.9824 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.699e-05/0.1496, allocations: 39.89 kB / 0.9825 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.137e-05/0.1496, allocations: 69.33 kB / 0.9825 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.1498, allocations: 108 kB / 0.9826 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1498, allocations: 4 kB / 0.9826 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1498, allocations: 0 / 0.9826 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.1498, allocations: 3.938 kB / 0.9826 GB, free: 24.72 MB / 0.6198 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.0004116/0.1502, allocations: 442.8 kB / 0.9831 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1502, allocations: 12.03 kB / 0.9831 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.162e-05/0.1503, allocations: 38.75 kB / 0.9831 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.1503, allocations: 16.75 kB / 0.9831 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.1505, allocations: 232.8 kB / 0.9833 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-06/0.1505, allocations: 4.375 kB / 0.9833 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.1505, allocations: 8.375 kB / 0.9834 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.1508, allocations: 117.7 kB / 0.9835 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.1508, allocations: 4 kB / 0.9835 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.1508, allocations: 4 kB / 0.9835 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1508, allocations: 0 / 0.9835 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.151, allocations: 91.81 kB / 0.9836 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004339/0.1515, allocations: 388.5 kB / 0.9839 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.1516, allocations: 54.48 kB / 0.984 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.584e-05/0.1517, allocations: 32.91 kB / 0.984 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.1517, allocations: 3.984 kB / 0.984 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.1519, allocations: 101.1 kB / 0.9841 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1519, allocations: 0 / 0.9841 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003669/0.1523, allocations: 153.3 kB / 0.9843 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.1524, allocations: 77.11 kB / 0.9843 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.1525, allocations: 260.9 kB / 0.9846 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.1525, allocations: 25.7 kB / 0.9846 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.1526, allocations: 128 kB / 0.9847 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.185e-05/0.1526, allocations: 7.906 kB / 0.9847 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/0.1526, allocations: 0 / 0.9847 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.1527, allocations: 334.8 kB / 0.9851 GB, free: 22 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.854e-05/0.1528, allocations: 31.97 kB / 0.9851 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.606e-05/0.1529, allocations: 47.42 kB / 0.9851 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.1531, allocations: 90.48 kB / 0.9852 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1531, allocations: 0 / 0.9852 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002372/0.1533, allocations: 117.4 kB / 0.9853 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.1533, allocations: 8 kB / 0.9853 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1533, allocations: 0 / 0.9853 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1534, allocations: 8.031 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-05/0.1535, allocations: 15.98 kB / 0.9854 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1535, allocations: 3.984 kB / 0.9854 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.024e-05/0.1536, allocations: 15.98 kB / 0.9854 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.1536, allocations: 0 / 0.9854 GB, free: 21.64 MB / 0.6198 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 6.585e-05/0.1536, allocations: 141.7 kB / 0.9855 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.1537, allocations: 19.81 kB / 0.9855 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.1537, allocations: 25.17 kB / 0.9856 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1537, allocations: 0 / 0.9856 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.1537, allocations: 0 / 0.9856 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.1537, allocations: 0 / 0.9856 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.712e-05/0.1538, allocations: 213.6 kB / 0.9858 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1538, allocations: 7.938 kB / 0.9858 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-05/0.1539, allocations: 11.98 kB / 0.9858 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.135e-06/0.1539, allocations: 4 kB / 0.9858 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1539, allocations: 7.938 kB / 0.9858 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1539, allocations: 7.922 kB / 0.9858 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1539, allocations: 4 kB / 0.9858 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.1542, allocations: 136.8 kB / 0.9859 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.943e-05/0.1542, allocations: 97.23 kB / 0.986 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.1542, allocations: 3.938 kB / 0.986 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.643e-05/0.1543, allocations: 15.98 kB / 0.986 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.1544, allocations: 3.938 kB / 0.9861 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.1544, allocations: 7.984 kB / 0.9861 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000117/0.1545, allocations: 192.5 kB / 0.9862 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1545, allocations: 0 / 0.9862 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001861/0.1547, allocations: 16 kB / 0.9863 GB, free: 20.65 MB / 0.6198 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.0004481/0.1552, allocations: 0.6963 MB / 0.9869 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002387/0.1554, allocations: 79.81 kB / 0.987 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1554, allocations: 0 / 0.987 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.1555, allocations: 36.16 kB / 0.987 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.1558, allocations: 34.47 kB / 0.9871 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.1569, allocations: 0.9332 MB / 0.988 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.157, allocations: 0.716 MB / 0.9887 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.566e-05/0.1571, allocations: 16.53 kB / 0.9887 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.382e-05/0.1571, allocations: 43.42 kB / 0.9887 GB, free: 18.01 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.1571, allocations: 0 / 0.9887 GB, free: 18.01 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4081/0.5653, allocations: 3.21 MB / 0.9919 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.5655, allocations: 203.1 kB / 0.9921 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.993/2.558, allocations: 0.625 kB / 0.9921 GB, free: 14.7 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)