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.924/2.924, allocations: 287.5 MB / 302.4 MB, free: 8.309 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.001358/0.001358, allocations: 177.7 kB / 371 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.312/2.312, allocations: 205.4 MB / 0.6297 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.0009884/0.0009882, allocations: 101.5 kB / 0.743 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005067, allocations: 14.86 kB / 0.8659 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2327, allocations: 115.3 MB / 0.9784 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002101/0.2349, allocations: 1.324 MB / 0.9797 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.236, allocations: 0.5546 MB / 0.9803 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.112e-05/0.2361, allocations: 3.938 kB / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.2363, allocations: 15.91 kB / 0.9803 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.2366, allocations: 61 kB / 0.9804 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.2368, allocations: 55.94 kB / 0.9804 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.237, allocations: 119.5 kB / 0.9805 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2371, allocations: 29.48 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.2372, allocations: 47.78 kB / 0.9806 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.2373, allocations: 55.7 kB / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.651e-05/0.2374, allocations: 0 / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.649e-05/0.2375, allocations: 16 kB / 0.9807 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.2376, allocations: 35.89 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.944e-05/0.2376, allocations: 45.58 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.2378, allocations: 108 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2378, allocations: 3.938 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.963e-06/0.2378, allocations: 0 / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2378, allocations: 0 / 0.9809 GB, free: 25.75 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.0006255/0.2384, allocations: 454.5 kB / 0.9813 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2385, allocations: 12.02 kB / 0.9813 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.769e-05/0.2386, allocations: 42.5 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.2386, allocations: 19.77 kB / 0.9814 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.2389, allocations: 219.8 kB / 0.9816 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.2389, allocations: 11.98 kB / 0.9816 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.2389, allocations: 4 kB / 0.9816 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.2393, allocations: 115.4 kB / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.2393, allocations: 0 / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.2394, allocations: 3.938 kB / 0.9817 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.2394, allocations: 8 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.2398, allocations: 79.94 kB / 0.9818 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.2405, allocations: 400.3 kB / 0.9822 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.2407, allocations: 50.5 kB / 0.9822 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.2409, allocations: 36.91 kB / 0.9822 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.2409, allocations: 0 / 0.9822 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003473/0.2413, allocations: 105.1 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.2413, allocations: 0 / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000666/0.242, allocations: 145.4 kB / 0.9825 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.242, allocations: 81.11 kB / 0.9826 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.2423, allocations: 249 kB / 0.9828 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.2424, allocations: 25.7 kB / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.909e-05/0.2425, allocations: 132 kB / 0.983 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.2425, allocations: 7.906 kB / 0.983 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.2425, allocations: 4 kB / 0.983 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.071e-05/0.2426, allocations: 326.8 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.2428, allocations: 27.98 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.243, allocations: 59.41 kB / 0.9834 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.2432, allocations: 35.91 kB / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2432, allocations: 0 / 0.9834 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004327/0.2437, allocations: 125.4 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.2437, allocations: 4 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2437, allocations: 4.094 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2437, allocations: 4 kB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.2439, allocations: 11.98 kB / 0.9835 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.2439, allocations: 7.984 kB / 0.9835 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.2441, allocations: 19.89 kB / 0.9836 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.2441, allocations: 0 / 0.9836 GB, free: 22.72 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.0001179/0.2442, allocations: 135.1 kB / 0.9837 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.2443, allocations: 23.7 kB / 0.9837 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.2443, allocations: 17.23 kB / 0.9837 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2444, allocations: 288 / 0.9837 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2444, allocations: 0 / 0.9837 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2444, allocations: 3.984 kB / 0.9837 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.2446, allocations: 221.5 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2446, allocations: 0 / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.2447, allocations: 27.86 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2447, allocations: 3.953 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.2448, allocations: 4 kB / 0.984 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2448, allocations: 0 / 0.984 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2448, allocations: 0 / 0.984 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.2452, allocations: 132.9 kB / 0.9841 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.407e-05/0.2453, allocations: 100.9 kB / 0.9842 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.2453, allocations: 3.953 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.2455, allocations: 11.98 kB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.2456, allocations: 7.984 kB / 0.9842 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.2456, allocations: 8 kB / 0.9842 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002009/0.2458, allocations: 188.5 kB / 0.9844 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.8e-07/0.2458, allocations: 0 / 0.9844 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002896/0.2461, allocations: 28.03 kB / 0.9844 GB, free: 21.73 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.0008097/0.2469, allocations: 0.6938 MB / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004415/0.2474, allocations: 63.89 kB / 0.9852 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2474, allocations: 4.125 kB / 0.9852 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.2476, allocations: 39.97 kB / 0.9852 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.2481, allocations: 40.34 kB / 0.9853 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.25, allocations: 0.9297 MB / 0.9862 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.2503, allocations: 0.716 MB / 0.9869 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001133/0.2504, allocations: 16.72 kB / 0.9869 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.797e-05/0.2505, allocations: 43.42 kB / 0.9869 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of SimCode: time 1.362e-06/0.2505, allocations: 0 / 0.9869 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.2723, allocations: 3.219 MB / 0.9901 GB, free: 16 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/0.2726, allocations: 189.4 kB / 0.9902 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.877/3.15, allocations: 0 / 0.9902 GB, free: 15.76 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)