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.001077/0.001077, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002049/0.002049, allocations: 279.1 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9117/0.9117, allocations: 169.3 MB / 0.4982 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 95.69 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1348, allocations: 86.99 MB / 0.6803 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002732/0.1375, allocations: 1.636 MB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008407/0.1384, allocations: 0.541 MB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.161e-05/0.1385, allocations: 0 / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.1387, allocations: 39.7 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.1389, allocations: 53.44 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001518/0.1391, allocations: 59.86 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.1392, allocations: 143.5 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.1394, allocations: 53.33 kB / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1395, allocations: 59.77 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.904e-05/0.1396, allocations: 55.77 kB / 0.6829 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.1396, allocations: 8.625 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.547e-05/0.1397, allocations: 23.94 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.338e-05/0.1398, allocations: 47.83 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.994e-05/0.1399, allocations: 63.59 kB / 0.683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.14, allocations: 131.5 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.14, allocations: 0 / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.14, allocations: 0 / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1401, allocations: 0 / 0.6831 GB, free: 13.66 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.0005365/0.1406, allocations: 478.5 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.1406, allocations: 16.03 kB / 0.6836 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.637e-05/0.1407, allocations: 34.75 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.1407, allocations: 20.75 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002146/0.1409, allocations: 237.4 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.141, allocations: 4.375 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.141, allocations: 4.375 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.1412, allocations: 113.7 kB / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.1413, allocations: 0 / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1413, allocations: 8 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1413, allocations: 4 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.1415, allocations: 59.94 kB / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.142, allocations: 380.5 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.1422, allocations: 42.48 kB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.1423, allocations: 32.84 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.1423, allocations: 3.984 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.1425, allocations: 105 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1425, allocations: 0 / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003912/0.1429, allocations: 121.4 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.143, allocations: 77.11 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.1432, allocations: 256.9 kB / 0.685 GB, free: 11.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1432, allocations: 29.7 kB / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.1433, allocations: 128 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.1433, allocations: 7.906 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.1434, allocations: 17.7 kB / 0.6852 GB, free: 11.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.1435, allocations: 326.8 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1436, allocations: 23.97 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.1437, allocations: 59.52 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1439, allocations: 62.53 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1439, allocations: 0 / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002519/0.1442, allocations: 105.4 kB / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1442, allocations: 8 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1442, allocations: 0 / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.1442, allocations: 3.938 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.674e-05/0.1443, allocations: 15.92 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1443, allocations: 4 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.292e-05/0.1444, allocations: 15.92 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.1444, allocations: 8 kB / 0.6858 GB, free: 10.64 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.809e-05/0.1445, allocations: 125.8 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.1446, allocations: 15.81 kB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.1446, allocations: 25.17 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1446, allocations: 0 / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1446, allocations: 4 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1446, allocations: 0 / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.1448, allocations: 217.6 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1448, allocations: 0 / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.381e-05/0.1449, allocations: 15.98 kB / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.1449, allocations: 0 / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.1449, allocations: 11.88 kB / 0.6862 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1449, allocations: 0 / 0.6862 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1449, allocations: 0 / 0.6862 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002625/0.1452, allocations: 120.8 kB / 0.6863 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.1452, allocations: 92.92 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.1453, allocations: 3.938 kB / 0.6864 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.708e-05/0.1453, allocations: 11.98 kB / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.1454, allocations: 7.984 kB / 0.6864 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1454, allocations: 7.938 kB / 0.6864 GB, free: 9.891 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001459/0.1456, allocations: 188.5 kB / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1456, allocations: 0 / 0.6866 GB, free: 9.707 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000206/0.1458, allocations: 24 kB / 0.6866 GB, free: 9.684 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.0005817/0.1464, allocations: 0.6779 MB / 0.6873 GB, free: 8.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002593/0.1466, allocations: 64 kB / 0.6874 GB, free: 8.918 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1466, allocations: 0 / 0.6874 GB, free: 8.918 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.1467, allocations: 32.09 kB / 0.6874 GB, free: 8.887 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.147, allocations: 43.52 kB / 0.6874 GB, free: 8.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.1488, allocations: 1.731 MB / 0.6891 GB, free: 7.027 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1491, allocations: 0.7197 MB / 0.6898 GB, free: 6.281 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.053e-05/0.1491, allocations: 24.33 kB / 0.6899 GB, free: 6.258 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.273e-05/0.1492, allocations: 43.42 kB / 0.6899 GB, free: 6.215 MB / 494.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1492, allocations: 0 / 0.6899 GB, free: 6.215 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5727/0.722, allocations: 3.577 MB / 0.6934 GB, free: 2.742 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.809, allocations: 12.52 kB / 0.6934 GB, free: 2.734 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)