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: translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007719/0.0007724, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008255/0.0008255, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001732/0.001732, allocations: 266.6 kB / 291.3 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9445/0.9445, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.000397, allocations: 11.53 kB / 0.598 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1373, allocations: 88.54 MB / 0.6845 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.001726/0.1391, allocations: 1.414 MB / 0.6858 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1404, allocations: 0.9494 MB / 0.6868 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.177e-05/0.1405, allocations: 5.031 kB / 0.6868 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.814e-05/0.1405, allocations: 3.984 kB / 0.6868 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.481e-05/0.1406, allocations: 28.34 kB / 0.6868 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003605/0.141, allocations: 129.8 kB / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.1411, allocations: 83.53 kB / 0.687 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.409e-05/0.1412, allocations: 33.66 kB / 0.687 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.053e-05/0.1413, allocations: 32.88 kB / 0.6871 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.1414, allocations: 35.84 kB / 0.6871 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.1414, allocations: 7.438 kB / 0.6871 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002964/0.1417, allocations: 175.8 kB / 0.6873 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.1417, allocations: 15.92 kB / 0.6873 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.1418, allocations: 33.7 kB / 0.6873 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.142, allocations: 143.7 kB / 0.6875 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.142, allocations: 4 kB / 0.6875 GB, free: 12.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.142, allocations: 0 / 0.6875 GB, free: 12.4 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.142, allocations: 0.6562 kB / 0.6875 GB, free: 12.4 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.000456/0.1425, allocations: 412.1 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.1425, allocations: 8.562 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.1426, allocations: 11.91 kB / 0.6879 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.1427, allocations: 183.6 kB / 0.6881 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1428, allocations: 4.719 kB / 0.6881 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.1428, allocations: 8 kB / 0.6881 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.1429, allocations: 74.39 kB / 0.6881 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.143, allocations: 1.688 kB / 0.6881 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.143, allocations: 0 / 0.6881 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.143, allocations: 0 / 0.6881 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.1431, allocations: 55.91 kB / 0.6882 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004828/0.1436, allocations: 399.9 kB / 0.6886 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.1438, allocations: 54.5 kB / 0.6886 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.666e-05/0.1439, allocations: 24.86 kB / 0.6887 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.931e-05/0.144, allocations: 89.12 kB / 0.6887 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.144, allocations: 34.52 kB / 0.6888 GB, free: 10.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.886e-06/0.144, allocations: 3.984 kB / 0.6888 GB, free: 10.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003058/0.1443, allocations: 85.67 kB / 0.6889 GB, free: 10.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.1444, allocations: 51.41 kB / 0.6889 GB, free: 10.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.1445, allocations: 144 kB / 0.689 GB, free: 10.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.1445, allocations: 33.7 kB / 0.6891 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.698e-05/0.1446, allocations: 96.05 kB / 0.6892 GB, free: 10.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.1446, allocations: 11.83 kB / 0.6892 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-06/0.1446, allocations: 0 / 0.6892 GB, free: 10.42 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.1447, allocations: 318.8 kB / 0.6895 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.418e-05/0.1448, allocations: 19.98 kB / 0.6895 GB, free: 10.08 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.228e-05/0.1448, allocations: 12.11 kB / 0.6895 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.263e-05/0.1449, allocations: 23.92 kB / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1449, allocations: 0 / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001483/0.145, allocations: 81.53 kB / 0.6896 GB, free: 9.961 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1451, allocations: 9.875 kB / 0.6896 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1451, allocations: 0 / 0.6896 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1451, allocations: 4 kB / 0.6896 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.1452, allocations: 7.984 kB / 0.6896 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1452, allocations: 4 kB / 0.6896 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.789e-05/0.1453, allocations: 7.844 kB / 0.6896 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.1453, allocations: 4 kB / 0.6896 GB, free: 9.926 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.81e-05/0.1454, allocations: 109.8 kB / 0.6898 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.1454, allocations: 11.95 kB / 0.6898 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.1456, allocations: 89.81 kB / 0.6898 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1456, allocations: 0 / 0.6898 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1456, allocations: 0 / 0.6898 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1456, allocations: 0 / 0.6898 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.1459, allocations: 193.6 kB / 0.69 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1459, allocations: 0 / 0.69 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.146, allocations: 15.98 kB / 0.69 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.146, allocations: 0 / 0.69 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.146, allocations: 3.953 kB / 0.6901 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.146, allocations: 3.938 kB / 0.6901 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.146, allocations: 0 / 0.6901 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002204/0.1462, allocations: 171.4 kB / 0.6902 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.1463, allocations: 89.02 kB / 0.6903 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.1463, allocations: 3.938 kB / 0.6903 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.1464, allocations: 15.94 kB / 0.6903 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.1464, allocations: 0 / 0.6903 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.1465, allocations: 4 kB / 0.6903 GB, free: 9.121 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.256e-05/0.1465, allocations: 101.2 kB / 0.6904 GB, free: 9.023 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1465, allocations: 0 / 0.6904 GB, free: 9.023 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003085/0.1468, allocations: 67.86 kB / 0.6905 GB, free: 8.957 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 (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.00024/0.1471, allocations: 167.1 kB / 0.6906 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001532/0.1473, allocations: 44.34 kB / 0.6907 GB, free: 8.742 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1473, allocations: 0 / 0.6907 GB, free: 8.742 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.371e-05/0.1473, allocations: 19.98 kB / 0.6907 GB, free: 8.723 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1476, allocations: 16.17 kB / 0.6907 GB, free: 8.707 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003586/0.148, allocations: 257.5 kB / 0.691 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.1483, allocations: 0.6926 MB / 0.6916 GB, free: 7.711 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.613e-05/0.1484, allocations: 4.188 kB / 0.6916 GB, free: 7.707 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.52e-05/0.1484, allocations: 15.42 kB / 0.6917 GB, free: 7.691 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1484, allocations: 0 / 0.6917 GB, free: 7.691 MB / 494.1 MB Notification: Performance of Templates: time 0.004082/0.1525, allocations: 1.689 MB / 0.6933 GB, free: 6.016 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (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 & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)