Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 1.558/1.558, allocations: 287.4 MB / 302.6 MB, free: 8.133 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.0009937/0.0009936, allocations: 185.5 kB / 371.1 MB, free: 10.81 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.511/1.511, allocations: 205.4 MB / 0.6298 GB, free: 10.5 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.0007513/0.0007516, allocations: 98.05 kB / 0.7431 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004092, allocations: 11.03 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2199, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001671/0.2216, allocations: 1.335 MB / 0.98 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007474/0.2224, allocations: 0.5516 MB / 0.9806 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.177e-05/0.2225, allocations: 0 / 0.9806 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001704/0.2226, allocations: 23.86 kB / 0.9806 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002187/0.2229, allocations: 52.62 kB / 0.9806 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001199/0.223, allocations: 55.92 kB / 0.9807 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.2231, allocations: 115.6 kB / 0.9808 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.2233, allocations: 49.45 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.2234, allocations: 43.78 kB / 0.9809 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.084e-05/0.2235, allocations: 51.7 kB / 0.9809 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.2235, allocations: 4 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.225e-05/0.2236, allocations: 15.98 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.161e-05/0.2237, allocations: 35.89 kB / 0.981 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.769e-05/0.2237, allocations: 49.58 kB / 0.981 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.2239, allocations: 96.05 kB / 0.9811 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2239, allocations: 0 / 0.9811 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2239, allocations: 3.938 kB / 0.9811 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.2239, allocations: 0 / 0.9811 GB, free: 25.59 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.0004992/0.2244, allocations: 450.8 kB / 0.9816 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2245, allocations: 12.03 kB / 0.9816 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.2245, allocations: 38.75 kB / 0.9816 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.645e-05/0.2245, allocations: 16.75 kB / 0.9816 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.2248, allocations: 232.8 kB / 0.9819 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.2248, allocations: 8.375 kB / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.2248, allocations: 4.375 kB / 0.9819 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.2251, allocations: 123.7 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2251, allocations: 4 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.2251, allocations: 4 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2251, allocations: 3.938 kB / 0.982 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.2253, allocations: 83.88 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.2258, allocations: 388.5 kB / 0.9825 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.2259, allocations: 54.48 kB / 0.9825 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.712e-05/0.226, allocations: 32.89 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.2261, allocations: 0 / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.2263, allocations: 109.1 kB / 0.9826 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.2263, allocations: 0 / 0.9826 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003954/0.2267, allocations: 145.3 kB / 0.9828 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.2268, allocations: 77.11 kB / 0.9829 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.227, allocations: 260.9 kB / 0.9831 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.227, allocations: 29.7 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.211e-05/0.2271, allocations: 132 kB / 0.9833 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.2271, allocations: 3.906 kB / 0.9833 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-06/0.2271, allocations: 4 kB / 0.9833 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.2272, allocations: 322.8 kB / 0.9836 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.2273, allocations: 35.97 kB / 0.9836 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.751e-05/0.2274, allocations: 55.41 kB / 0.9837 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.2276, allocations: 86.5 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2276, allocations: 0 / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002362/0.2278, allocations: 117.4 kB / 0.9839 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2278, allocations: 8 kB / 0.9839 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2278, allocations: 288 / 0.9839 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.2279, allocations: 8.031 kB / 0.9839 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.228, allocations: 15.98 kB / 0.9839 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.228, allocations: 0 / 0.9839 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.984e-05/0.2281, allocations: 15.98 kB / 0.9839 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.2281, allocations: 0 / 0.9839 GB, free: 22.51 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 7.942e-05/0.2282, allocations: 143 kB / 0.984 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.2282, allocations: 23.75 kB / 0.9841 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.2282, allocations: 21.17 kB / 0.9841 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2282, allocations: 4 kB / 0.9841 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2282, allocations: 0 / 0.9841 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.2283, allocations: 0 / 0.9841 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.2284, allocations: 217.5 kB / 0.9843 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2284, allocations: 0 / 0.9843 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.2285, allocations: 15.98 kB / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2285, allocations: 4 kB / 0.9843 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.2285, allocations: 7.938 kB / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2285, allocations: 3.938 kB / 0.9843 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2285, allocations: 4 kB / 0.9843 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.2288, allocations: 144.8 kB / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.2288, allocations: 92.91 kB / 0.9845 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.2288, allocations: 3.938 kB / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.582e-05/0.2289, allocations: 19.98 kB / 0.9846 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.433e-05/0.229, allocations: 0 / 0.9846 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.229, allocations: 11.92 kB / 0.9846 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001211/0.2291, allocations: 188.5 kB / 0.9848 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2291, allocations: 0 / 0.9848 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001861/0.2293, allocations: 23.98 kB / 0.9848 GB, free: 21.51 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.0005335/0.2299, allocations: 0.6794 MB / 0.9854 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.2301, allocations: 71.83 kB / 0.9855 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2301, allocations: 0 / 0.9855 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.2302, allocations: 40.16 kB / 0.9856 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.2305, allocations: 44.06 kB / 0.9856 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.2318, allocations: 0.9295 MB / 0.9865 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.2319, allocations: 0.7199 MB / 0.9872 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.848e-05/0.232, allocations: 20.48 kB / 0.9872 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.781e-05/0.232, allocations: 39.42 kB / 0.9873 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.232, allocations: 0 / 0.9873 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3065/0.5385, allocations: 3.202 MB / 0.9904 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.5388, allocations: 190.7 kB / 0.9906 GB, free: 15.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.617/2.156, allocations: 3.938 kB / 0.9906 GB, free: 15.56 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)