Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.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.ConvectiveHeatTransfer.Examples.AlphaGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap") translateModel(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 103.9 kB / 16.35 MB, free: 5.824 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.00124/0.00124, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.272/1.272, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002107/0.002106, allocations: 285.6 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9341/0.9341, allocations: 169.3 MB / 0.4989 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 94.16 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.153, allocations: 86.97 MB / 0.6816 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap): time 0.002418/0.1554, allocations: 1.261 MB / 0.6828 GB, free: 6.207 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1566, allocations: 0.8692 MB / 0.6837 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.511e-05/0.1567, allocations: 4 kB / 0.6837 GB, free: 5.328 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.935e-05/0.1567, allocations: 3.938 kB / 0.6837 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.405e-05/0.1567, allocations: 0 / 0.6837 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.1572, allocations: 138.5 kB / 0.6838 GB, free: 5.191 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.82e-05/0.1572, allocations: 23.92 kB / 0.6838 GB, free: 5.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.813e-05/0.1573, allocations: 3.938 kB / 0.6838 GB, free: 5.164 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.77e-05/0.1574, allocations: 19.97 kB / 0.6838 GB, free: 5.145 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.391e-05/0.1574, allocations: 19.92 kB / 0.6839 GB, free: 5.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.1575, allocations: 0 / 0.6839 GB, free: 5.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.1577, allocations: 163.8 kB / 0.684 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.1577, allocations: 0 / 0.684 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.492e-05/0.1578, allocations: 7.938 kB / 0.684 GB, free: 4.957 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.158, allocations: 131.7 kB / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.158, allocations: 0 / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.158, allocations: 0 / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.158, allocations: 0 / 0.6842 GB, free: 4.828 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003492/0.1583, allocations: 359.4 kB / 0.6845 GB, free: 4.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.1584, allocations: 12.03 kB / 0.6845 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.696e-05/0.1584, allocations: 0.9375 kB / 0.6845 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.736e-05/0.1585, allocations: 168.2 kB / 0.6847 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.138e-06/0.1585, allocations: 384 / 0.6847 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-06/0.1585, allocations: 4.375 kB / 0.6847 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.1587, allocations: 46 kB / 0.6847 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.1587, allocations: 0 / 0.6847 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.1587, allocations: 0 / 0.6847 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1587, allocations: 0 / 0.6847 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.919e-05/0.1587, allocations: 31.97 kB / 0.6847 GB, free: 4.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.1589, allocations: 161.7 kB / 0.6849 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.811e-05/0.159, allocations: 42.48 kB / 0.6849 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.654e-05/0.159, allocations: 12.98 kB / 0.685 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.1591, allocations: 89.09 kB / 0.685 GB, free: 3.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.1592, allocations: 42.5 kB / 0.6851 GB, free: 3.699 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.1592, allocations: 3.938 kB / 0.6851 GB, free: 3.695 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001579/0.1593, allocations: 65.69 kB / 0.6851 GB, free: 3.625 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.1594, allocations: 55.34 kB / 0.6852 GB, free: 3.559 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.522e-05/0.1595, allocations: 93.86 kB / 0.6853 GB, free: 3.457 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.1595, allocations: 29.7 kB / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.521e-05/0.1595, allocations: 80.14 kB / 0.6854 GB, free: 3.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.1595, allocations: 15.73 kB / 0.6854 GB, free: 3.324 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.1596, allocations: 21.72 kB / 0.6854 GB, free: 3.297 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1597, allocations: 318.9 kB / 0.6857 GB, free: 2.977 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.188e-05/0.1597, allocations: 11.98 kB / 0.6857 GB, free: 2.965 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.646e-05/0.1597, allocations: 4 kB / 0.6857 GB, free: 2.961 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.832e-05/0.1598, allocations: 29.23 kB / 0.6858 GB, free: 2.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1598, allocations: 0 / 0.6858 GB, free: 2.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.799e-05/0.1599, allocations: 65.53 kB / 0.6858 GB, free: 2.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.1599, allocations: 11.94 kB / 0.6859 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.1599, allocations: 0 / 0.6859 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1599, allocations: 0 / 0.6859 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.059e-05/0.16, allocations: 11.98 kB / 0.6859 GB, free: 2.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.16, allocations: 4 kB / 0.6859 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.988e-05/0.16, allocations: 0 / 0.6859 GB, free: 2.832 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.16, allocations: 4 kB / 0.6859 GB, free: 2.828 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 (5): * Single equations (assignments): 5 * 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 6.922e-05/0.1601, allocations: 105.8 kB / 0.686 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.1601, allocations: 7.938 kB / 0.686 GB, free: 2.707 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.1603, allocations: 85.17 kB / 0.6861 GB, free: 2.613 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.1603, allocations: 0 / 0.6861 GB, free: 2.613 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1603, allocations: 4 kB / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1603, allocations: 3.984 kB / 0.6861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.1605, allocations: 165.6 kB / 0.6862 GB, free: 2.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1605, allocations: 0 / 0.6862 GB, free: 2.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.1605, allocations: 8 kB / 0.6862 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1605, allocations: 3.938 kB / 0.6862 GB, free: 2.383 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.1605, allocations: 0 / 0.6862 GB, free: 2.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1605, allocations: 0 / 0.6862 GB, free: 2.383 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1605, allocations: 4 kB / 0.6862 GB, free: 2.379 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.1607, allocations: 89.11 kB / 0.6863 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.1607, allocations: 88.98 kB / 0.6864 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.048e-05/0.1607, allocations: 3.938 kB / 0.6864 GB, free: 2.164 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.039e-05/0.1607, allocations: 192 / 0.6864 GB, free: 2.164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.1608, allocations: 4 kB / 0.6864 GB, free: 2.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-06/0.1608, allocations: 4 kB / 0.6864 GB, free: 2.156 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.239e-05/0.1608, allocations: 91.27 kB / 0.6865 GB, free: 2.066 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1608, allocations: 0 / 0.6865 GB, free: 2.066 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.1611, allocations: 43.94 kB / 0.6866 GB, free: 2.023 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 (6): * Single equations (assignments): 6 * 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.0002161/0.1613, allocations: 159.1 kB / 0.6867 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.1614, allocations: 27.98 kB / 0.6867 GB, free: 1.828 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1614, allocations: 0 / 0.6867 GB, free: 1.828 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.977e-05/0.1614, allocations: 19.94 kB / 0.6867 GB, free: 1.809 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.1616, allocations: 6.031 kB / 0.6868 GB, free: 1.805 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002214/0.1618, allocations: 118.8 kB / 0.6869 GB, free: 1.664 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002169/0.162, allocations: 0.6844 MB / 0.6875 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.849e-05/0.1621, allocations: 12.23 kB / 0.6875 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.1621, allocations: 15.42 kB / 0.6876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1621, allocations: 4 kB / 0.6876 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of Templates: time 0.2319/0.394, allocations: 1.169 MB / 0.6887 GB, free: 17.79 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.makefile (rm -f BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.sim & ./BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe 2>&1)