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 2.622/2.622, allocations: 287.3 MB / 302.3 MB, free: 8.367 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.001576/0.001576, allocations: 183 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001145/0.001145, allocations: 78.94 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006476/0.0006478, allocations: 11.41 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2309, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002084/0.2331, allocations: 1.328 MB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2343, allocations: 0.5352 MB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.265e-05/0.2345, allocations: 7.875 kB / 0.9801 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.2347, allocations: 27.84 kB / 0.9801 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002911/0.235, allocations: 60.84 kB / 0.9802 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.2352, allocations: 51.88 kB / 0.9802 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.2354, allocations: 87.81 kB / 0.9803 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.2356, allocations: 41.47 kB / 0.9804 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.2357, allocations: 51.7 kB / 0.9804 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.67e-05/0.2358, allocations: 43.77 kB / 0.9805 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.2358, allocations: 4 kB / 0.9805 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.2359, allocations: 8 kB / 0.9805 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.2e-05/0.236, allocations: 39.83 kB / 0.9805 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.567e-05/0.2361, allocations: 41.64 kB / 0.9805 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2362, allocations: 100 kB / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2363, allocations: 0 / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.914e-06/0.2363, allocations: 4 kB / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.2363, allocations: 4 kB / 0.9806 GB, free: 25.84 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.0006565/0.2369, allocations: 454.5 kB / 0.9811 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.237, allocations: 16.02 kB / 0.9811 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.2371, allocations: 34.56 kB / 0.9811 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.2371, allocations: 19.77 kB / 0.9811 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.2374, allocations: 227.7 kB / 0.9814 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.2374, allocations: 12 kB / 0.9814 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.2375, allocations: 8 kB / 0.9814 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.2379, allocations: 113.6 kB / 0.9815 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2379, allocations: 0 / 0.9815 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.2379, allocations: 4 kB / 0.9815 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.2379, allocations: 4 kB / 0.9815 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004072/0.2384, allocations: 75.94 kB / 0.9816 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007548/0.2391, allocations: 388.4 kB / 0.9819 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002207/0.2394, allocations: 58.5 kB / 0.982 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.2394, allocations: 4 kB / 0.982 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.2398, allocations: 105.1 kB / 0.9821 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.995e-06/0.2398, allocations: 0 / 0.9821 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0006769/0.2405, allocations: 141.3 kB / 0.9822 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.2405, allocations: 81.11 kB / 0.9823 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.2409, allocations: 253 kB / 0.9826 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.2409, allocations: 29.7 kB / 0.9826 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.241, allocations: 135.9 kB / 0.9827 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.241, allocations: 11.89 kB / 0.9827 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-06/0.241, allocations: 0 / 0.9827 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7e-05/0.2411, allocations: 326.8 kB / 0.983 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.2413, allocations: 35.97 kB / 0.9831 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.2415, allocations: 55.58 kB / 0.9831 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.2417, allocations: 43.94 kB / 0.9832 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2417, allocations: 0 / 0.9832 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004926/0.2422, allocations: 121.3 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.2423, allocations: 9.25 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.2423, allocations: 0 / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.2423, allocations: 0 / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.2425, allocations: 20.08 kB / 0.9833 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.2425, allocations: 0 / 0.9833 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.2427, allocations: 19.89 kB / 0.9833 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.2427, allocations: 4 kB / 0.9833 GB, free: 22.83 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 0.0001238/0.2429, allocations: 125.8 kB / 0.9834 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.2429, allocations: 19.77 kB / 0.9835 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.141e-05/0.243, allocations: 21.23 kB / 0.9835 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.243, allocations: 4 kB / 0.9835 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.243, allocations: 0 / 0.9835 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.243, allocations: 0 / 0.9835 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001809/0.2432, allocations: 217.5 kB / 0.9837 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2432, allocations: 0 / 0.9837 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.2433, allocations: 15.92 kB / 0.9837 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2434, allocations: 3.953 kB / 0.9837 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2434, allocations: 4 kB / 0.9837 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2434, allocations: 0 / 0.9837 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2434, allocations: 4 kB / 0.9837 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004555/0.2439, allocations: 136.9 kB / 0.9839 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.705e-05/0.2439, allocations: 92.92 kB / 0.9839 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.244, allocations: 7.891 kB / 0.984 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.2441, allocations: 15.98 kB / 0.984 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/0.2442, allocations: 7.984 kB / 0.984 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.2442, allocations: 8 kB / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002226/0.2445, allocations: 188.5 kB / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.3e-07/0.2445, allocations: 0 / 0.9842 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000315/0.2448, allocations: 27.91 kB / 0.9842 GB, free: 21.86 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.0008035/0.2456, allocations: 0.6841 MB / 0.9849 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000485/0.2461, allocations: 75.94 kB / 0.9849 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2462, allocations: 3.938 kB / 0.9849 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.2464, allocations: 36.16 kB / 0.985 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.2467, allocations: 41.95 kB / 0.985 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.2488, allocations: 1.22 MB / 0.9862 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.249, allocations: 0.716 MB / 0.9869 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000116/0.2491, allocations: 20.53 kB / 0.9869 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.685e-05/0.2492, allocations: 43.36 kB / 0.987 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of SimCode: time 1.012e-06/0.2492, allocations: 3.938 kB / 0.987 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.2797, allocations: 3.197 MB / 0.9901 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003/0.2801, allocations: 180.2 kB / 0.9903 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.77/3.05, allocations: 0 / 0.9903 GB, free: 15.61 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)