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.243/1.243, allocations: 251.5 MB / 266.7 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009207/0.0009208, allocations: 172.2 kB / 325.8 MB, free: 2.68 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.404/1.404, allocations: 205 MB / 0.576 GB, free: 20.96 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.0006973/0.0006972, allocations: 89.98 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003311, allocations: 12.41 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1515, allocations: 105.4 MB / 0.8962 GB, free: 68.06 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001451/0.153, allocations: 1.376 MB / 0.8975 GB, free: 66.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006659/0.1537, allocations: 0.5889 MB / 0.8981 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.527e-05/0.1538, allocations: 7.938 kB / 0.8981 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1539, allocations: 27.84 kB / 0.8982 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.1541, allocations: 47.83 kB / 0.8982 GB, free: 65.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001055/0.1542, allocations: 63.8 kB / 0.8983 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.1544, allocations: 131.5 kB / 0.8984 GB, free: 65.8 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.1545, allocations: 45.45 kB / 0.8984 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.906e-05/0.1546, allocations: 39.84 kB / 0.8985 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.161e-05/0.1546, allocations: 55.7 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.1547, allocations: 4 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.408e-05/0.1547, allocations: 23.92 kB / 0.8985 GB, free: 65.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.1548, allocations: 39.83 kB / 0.8986 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.563e-05/0.1548, allocations: 47.61 kB / 0.8986 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.1549, allocations: 131.5 kB / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.155, allocations: 0 / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.082e-06/0.155, allocations: 0 / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.467e-06/0.155, allocations: 0 / 0.8988 GB, free: 65.42 MB / 0.6042 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.0003964/0.1554, allocations: 458.8 kB / 0.8992 GB, free: 64.92 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.1554, allocations: 8.031 kB / 0.8992 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.921e-05/0.1554, allocations: 38.75 kB / 0.8992 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.344e-05/0.1555, allocations: 16.75 kB / 0.8993 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.1556, allocations: 236.8 kB / 0.8995 GB, free: 64.58 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.824e-06/0.1557, allocations: 4.375 kB / 0.8995 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.547e-06/0.1557, allocations: 4.375 kB / 0.8995 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.1559, allocations: 128.7 kB / 0.8996 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1559, allocations: 0 / 0.8996 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.1559, allocations: 0 / 0.8996 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1559, allocations: 4 kB / 0.8996 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.1562, allocations: 79.94 kB / 0.8997 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.1566, allocations: 388.5 kB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.1567, allocations: 46.55 kB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.708e-05/0.1568, allocations: 36.91 kB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.1568, allocations: 0 / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.1571, allocations: 105 kB / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1571, allocations: 0 / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003575/0.1574, allocations: 149.5 kB / 0.9004 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.1575, allocations: 85.05 kB / 0.9005 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1576, allocations: 256.9 kB / 0.9007 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.1577, allocations: 25.7 kB / 0.9007 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.315e-05/0.1577, allocations: 124 kB / 0.9009 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.1577, allocations: 11.91 kB / 0.9009 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.1577, allocations: 9.719 kB / 0.9009 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.1578, allocations: 330.8 kB / 0.9012 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.1579, allocations: 27.98 kB / 0.9012 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.158, allocations: 67.38 kB / 0.9013 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.1582, allocations: 86.48 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1582, allocations: 4 kB / 0.9014 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002373/0.1585, allocations: 117.5 kB / 0.9015 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1585, allocations: 4 kB / 0.9015 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1585, allocations: 4 kB / 0.9015 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.1585, allocations: 3.938 kB / 0.9015 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.1586, allocations: 15.98 kB / 0.9015 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1586, allocations: 3.938 kB / 0.9015 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.156e-05/0.1587, allocations: 27.86 kB / 0.9015 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.1587, allocations: 0 / 0.9015 GB, free: 62.3 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.248e-05/0.1588, allocations: 130.5 kB / 0.9017 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.1588, allocations: 15.81 kB / 0.9017 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.1589, allocations: 21.17 kB / 0.9017 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1589, allocations: 0 / 0.9017 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1589, allocations: 4 kB / 0.9017 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1589, allocations: 0 / 0.9017 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.159, allocations: 217.6 kB / 0.9019 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.159, allocations: 4 kB / 0.9019 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.456e-05/0.1591, allocations: 19.98 kB / 0.9019 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1591, allocations: 0 / 0.9019 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1591, allocations: 3.938 kB / 0.9019 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1591, allocations: 0 / 0.9019 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1591, allocations: 3.984 kB / 0.9019 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.1594, allocations: 140.8 kB / 0.9021 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.1594, allocations: 88.92 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.1594, allocations: 3.938 kB / 0.9022 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.839e-05/0.1595, allocations: 19.92 kB / 0.9022 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.1596, allocations: 11.98 kB / 0.9022 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1596, allocations: 4 kB / 0.9022 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001172/0.1597, allocations: 188.5 kB / 0.9024 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1597, allocations: 0 / 0.9024 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001971/0.1599, allocations: 20 kB / 0.9024 GB, free: 61.33 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005283/0.1604, allocations: 0.6881 MB / 0.9031 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002889/0.1607, allocations: 80.06 kB / 0.9031 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1608, allocations: 0 / 0.9031 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1609, allocations: 35.97 kB / 0.9032 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1611, allocations: 40.98 kB / 0.9032 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.1627, allocations: 1.807 MB / 0.905 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.1629, allocations: 0.7238 MB / 0.9057 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.827e-05/0.1629, allocations: 12.55 kB / 0.9057 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.713e-05/0.163, allocations: 47.41 kB / 0.9057 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of SimCode: time 8.71e-07/0.163, allocations: 0 / 0.9057 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1528/0.3158, allocations: 3.232 MB / 0.9089 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.316, allocations: 215.4 kB / 0.9091 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/2.084, allocations: 0 / 0.9091 GB, free: 54.41 MB / 0.6042 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)