Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",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.0008644/0.0008644, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005048/0.005048, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.202/1.202, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00163/0.00163, allocations: 270.5 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8704/0.8704, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 20.28 kB / 0.5987 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1417, allocations: 88.54 MB / 0.6852 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.00166/0.1434, allocations: 1.45 MB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1448, allocations: 1.026 MB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.176e-05/0.1448, allocations: 1.031 kB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.877e-05/0.1449, allocations: 3.984 kB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.295e-05/0.145, allocations: 28.45 kB / 0.6877 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.1453, allocations: 129.9 kB / 0.6878 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.1455, allocations: 95.47 kB / 0.6879 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.1456, allocations: 31.36 kB / 0.6879 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.566e-05/0.1457, allocations: 35.86 kB / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.1457, allocations: 35.84 kB / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.1458, allocations: 0 / 0.688 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002891/0.1461, allocations: 189 kB / 0.6882 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.1461, allocations: 15.88 kB / 0.6882 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.354e-05/0.1462, allocations: 61.5 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.1464, allocations: 196.3 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1465, allocations: 3.938 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1465, allocations: 0.875 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1465, allocations: 0 / 0.6884 GB, free: 11.7 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004397/0.1469, allocations: 409.4 kB / 0.6888 GB, free: 11.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.147, allocations: 8.031 kB / 0.6888 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.252e-05/0.147, allocations: 38.75 kB / 0.6889 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.624e-05/0.147, allocations: 16.83 kB / 0.6889 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.1472, allocations: 198.2 kB / 0.6891 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.1472, allocations: 4.359 kB / 0.6891 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.407e-05/0.1472, allocations: 8.375 kB / 0.6891 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.1474, allocations: 73.8 kB / 0.6891 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.1474, allocations: 0 / 0.6891 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.1474, allocations: 0 / 0.6891 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1474, allocations: 0 / 0.6891 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.1476, allocations: 51.97 kB / 0.6892 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004649/0.148, allocations: 392 kB / 0.6896 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.1482, allocations: 54.56 kB / 0.6896 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.735e-05/0.1482, allocations: 20.94 kB / 0.6896 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001065/0.1483, allocations: 85.11 kB / 0.6897 GB, free: 10.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.1484, allocations: 34.5 kB / 0.6898 GB, free: 10.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1484, allocations: 0 / 0.6898 GB, free: 10.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002545/0.1486, allocations: 93.56 kB / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1487, allocations: 51.41 kB / 0.6899 GB, free: 9.977 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1488, allocations: 143.8 kB / 0.69 GB, free: 9.824 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.1488, allocations: 29.7 kB / 0.6901 GB, free: 9.789 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.112e-05/0.1489, allocations: 104 kB / 0.6902 GB, free: 9.684 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.1489, allocations: 3.906 kB / 0.6902 GB, free: 9.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-05/0.1489, allocations: 13.72 kB / 0.6902 GB, free: 9.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.727e-05/0.149, allocations: 318.8 kB / 0.6905 GB, free: 9.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.065e-05/0.1491, allocations: 16 kB / 0.6905 GB, free: 9.324 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.676e-05/0.1491, allocations: 23.92 kB / 0.6905 GB, free: 9.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.1492, allocations: 40.84 kB / 0.6906 GB, free: 9.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1492, allocations: 0 / 0.6906 GB, free: 9.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001434/0.1494, allocations: 77.58 kB / 0.6906 GB, free: 9.176 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.1494, allocations: 4 kB / 0.6906 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.1494, allocations: 0 / 0.6906 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.015e-06/0.1494, allocations: 0 / 0.6906 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.1495, allocations: 11.98 kB / 0.6906 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1495, allocations: 3.938 kB / 0.6906 GB, free: 9.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.625e-05/0.1496, allocations: 7.938 kB / 0.6907 GB, free: 9.148 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.1496, allocations: 4 kB / 0.6907 GB, free: 9.145 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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.591e-05/0.1497, allocations: 119.1 kB / 0.6908 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.1497, allocations: 12.22 kB / 0.6908 GB, free: 9.008 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001933/0.1499, allocations: 93.89 kB / 0.6909 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1499, allocations: 0 / 0.6909 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1499, allocations: 4.047 kB / 0.6909 GB, free: 8.898 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.15, allocations: 7.922 kB / 0.6909 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.1501, allocations: 185.6 kB / 0.6911 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1501, allocations: 8 kB / 0.6911 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.096e-05/0.1502, allocations: 11.98 kB / 0.6911 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1502, allocations: 0 / 0.6911 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.1503, allocations: 0 / 0.6911 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1503, allocations: 0 / 0.6911 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1503, allocations: 3.938 kB / 0.6911 GB, free: 8.637 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.1505, allocations: 183.4 kB / 0.6913 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.1505, allocations: 88.95 kB / 0.6913 GB, free: 8.336 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.1506, allocations: 4 kB / 0.6913 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.647e-05/0.1506, allocations: 7.984 kB / 0.6914 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.1507, allocations: 3.938 kB / 0.6914 GB, free: 8.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.1507, allocations: 4 kB / 0.6914 GB, free: 8.316 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.147e-05/0.1507, allocations: 109 kB / 0.6915 GB, free: 8.211 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1508, allocations: 0 / 0.6915 GB, free: 8.211 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000277/0.151, allocations: 63.84 kB / 0.6915 GB, free: 8.148 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005661/0.1516, allocations: 0.767 MB / 0.6923 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.1518, allocations: 43.97 kB / 0.6923 GB, free: 7.312 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1518, allocations: 0 / 0.6923 GB, free: 7.312 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.966e-05/0.1518, allocations: 23.98 kB / 0.6923 GB, free: 7.289 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.1521, allocations: 15.89 kB / 0.6924 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.1535, allocations: 1.544 MB / 0.6939 GB, free: 5.656 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1537, allocations: 0.6926 MB / 0.6945 GB, free: 4.938 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.406e-05/0.1538, allocations: 11.92 kB / 0.6946 GB, free: 4.926 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.1538, allocations: 23.44 kB / 0.6946 GB, free: 4.902 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1538, allocations: 0 / 0.6946 GB, free: 4.902 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.1657, allocations: 2.83 MB / 0.6973 GB, free: 2.195 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002988/0.1661, allocations: 193.7 kB / 0.6975 GB, free: 1.938 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/1.768, allocations: 0 / 0.6975 GB, free: 1.938 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)