Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008862/0.0008863, allocations: 91.06 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005057/0.005057, allocations: 172.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001664/0.001664, allocations: 278.1 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8909/0.8909, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003619, allocations: 15.44 kB / 0.5988 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1315, allocations: 88.55 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001594/0.1332, allocations: 1.345 MB / 0.6865 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006926/0.1339, allocations: 0.5358 MB / 0.6871 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.773e-05/0.134, allocations: 4.562 kB / 0.6871 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1341, allocations: 23.84 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1343, allocations: 51.05 kB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001279/0.1344, allocations: 59.92 kB / 0.6872 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.1346, allocations: 127.5 kB / 0.6873 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1347, allocations: 53.08 kB / 0.6874 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.992e-05/0.1348, allocations: 43.78 kB / 0.6874 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.231e-05/0.1349, allocations: 43.77 kB / 0.6875 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.213e-05/0.1349, allocations: 4 kB / 0.6875 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.906e-05/0.135, allocations: 28.86 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.1351, allocations: 39.83 kB / 0.6875 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.1351, allocations: 73.77 kB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.1353, allocations: 136 kB / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1353, allocations: 0 / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1353, allocations: 2.281 kB / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.446e-06/0.1353, allocations: 0 / 0.6877 GB, free: 12.38 MB / 494.1 MB 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.0004857/0.1358, allocations: 449.9 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.1358, allocations: 12.03 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.867e-05/0.1359, allocations: 40.02 kB / 0.6882 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.1359, allocations: 24.66 kB / 0.6882 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.1361, allocations: 233.5 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.1361, allocations: 4.906 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.1362, allocations: 4.375 kB / 0.6885 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.1364, allocations: 128.1 kB / 0.6886 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.1364, allocations: 0 / 0.6886 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.1365, allocations: 4 kB / 0.6886 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.1365, allocations: 4 kB / 0.6886 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.1367, allocations: 81.39 kB / 0.6887 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005018/0.1372, allocations: 386.9 kB / 0.689 GB, free: 10.89 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.1374, allocations: 50.5 kB / 0.6891 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1375, allocations: 36.89 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.1375, allocations: 4 kB / 0.6891 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.1377, allocations: 105 kB / 0.6892 GB, free: 10.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1378, allocations: 0 / 0.6892 GB, free: 10.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004172/0.1382, allocations: 149.4 kB / 0.6894 GB, free: 10.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.1382, allocations: 81.11 kB / 0.6894 GB, free: 10.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.1384, allocations: 256.9 kB / 0.6897 GB, free: 10.17 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1385, allocations: 29.7 kB / 0.6897 GB, free: 10.13 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.1385, allocations: 124.1 kB / 0.6898 GB, free: 10.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.1386, allocations: 7.906 kB / 0.6898 GB, free: 10 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.1386, allocations: 9.719 kB / 0.6899 GB, free: 9.984 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.1387, allocations: 330.8 kB / 0.6902 GB, free: 9.652 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.1388, allocations: 31.98 kB / 0.6902 GB, free: 9.621 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1389, allocations: 59.34 kB / 0.6903 GB, free: 9.551 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.1392, allocations: 82.55 kB / 0.6903 GB, free: 9.461 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1392, allocations: 4 kB / 0.6903 GB, free: 9.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002787/0.1395, allocations: 117.4 kB / 0.6904 GB, free: 9.336 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.1395, allocations: 8.094 kB / 0.6905 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.1395, allocations: 0 / 0.6905 GB, free: 9.328 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.1395, allocations: 7.938 kB / 0.6905 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.1396, allocations: 15.92 kB / 0.6905 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.1396, allocations: 4 kB / 0.6905 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.871e-05/0.1397, allocations: 23.83 kB / 0.6905 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.1397, allocations: 3.938 kB / 0.6905 GB, free: 9.273 MB / 494.1 MB 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 8.771e-05/0.1398, allocations: 133.8 kB / 0.6906 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.1398, allocations: 15.81 kB / 0.6907 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.1399, allocations: 21.17 kB / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1399, allocations: 0 / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.1399, allocations: 0 / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1399, allocations: 288 / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.14, allocations: 217.6 kB / 0.6909 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1401, allocations: 4 kB / 0.6909 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-05/0.1401, allocations: 19.98 kB / 0.6909 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1402, allocations: 3.984 kB / 0.6909 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1402, allocations: 7.875 kB / 0.6909 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1402, allocations: 0 / 0.6909 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1402, allocations: 0 / 0.6909 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.1405, allocations: 144.8 kB / 0.6911 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.1405, allocations: 96.83 kB / 0.6911 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.1405, allocations: 3.938 kB / 0.6911 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.709e-05/0.1406, allocations: 11.98 kB / 0.6912 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.1407, allocations: 15.98 kB / 0.6912 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.1407, allocations: 4 kB / 0.6912 GB, free: 8.488 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001503/0.1409, allocations: 188.5 kB / 0.6914 GB, free: 8.301 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1409, allocations: 0 / 0.6914 GB, free: 8.301 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000209/0.1411, allocations: 20 kB / 0.6914 GB, free: 8.281 MB / 494.1 MB 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.0005841/0.1417, allocations: 0.6876 MB / 0.6921 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.1419, allocations: 79.94 kB / 0.6921 GB, free: 7.492 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.142, allocations: 0 / 0.6921 GB, free: 7.492 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.1421, allocations: 35.97 kB / 0.6922 GB, free: 7.457 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1423, allocations: 32.41 kB / 0.6922 GB, free: 7.426 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.1442, allocations: 1.83 MB / 0.694 GB, free: 5.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.1444, allocations: 0.7238 MB / 0.6947 GB, free: 4.754 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.759e-05/0.1445, allocations: 16.72 kB / 0.6947 GB, free: 4.734 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.193e-05/0.1446, allocations: 43.42 kB / 0.6947 GB, free: 4.691 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1446, allocations: 0 / 0.6947 GB, free: 4.691 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2615/0.4061, allocations: 3.236 MB / 0.6979 GB, free: 1.617 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.4063, allocations: 217.1 kB / 0.6981 GB, free: 1.363 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.037, allocations: 0 / 0.6981 GB, free: 1.363 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)