Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.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.HeatAndMoistureTransport.Functions.Examples.wSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor",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.004264/0.004264, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.001203/0.001203, allocations: 195.4 kB / 16.68 MB, free: 5.934 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002345/0.002345, allocations: 290.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9756/0.9756, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002587/0.002587, allocations: 99.84 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1575, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor): time 0.002756/0.1603, allocations: 1.705 MB / 0.7675 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007404/0.1611, allocations: 0.5024 MB / 0.768 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.1611, allocations: 4 kB / 0.768 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003898/0.1615, allocations: 155.4 kB / 0.7682 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.934e-05/0.1616, allocations: 47.69 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.1618, allocations: 67.8 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.162, allocations: 107.4 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.568e-05/0.1621, allocations: 4.281 kB / 0.7684 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.606e-05/0.1621, allocations: 35.84 kB / 0.7684 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.035e-05/0.1622, allocations: 55.7 kB / 0.7685 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.1622, allocations: 4 kB / 0.7685 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.1624, allocations: 91.83 kB / 0.7686 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.402e-05/0.1625, allocations: 47.88 kB / 0.7686 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.679e-05/0.1626, allocations: 63.55 kB / 0.7687 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.1629, allocations: 203 kB / 0.7689 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1629, allocations: 3.984 kB / 0.7689 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1629, allocations: 0 / 0.7689 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.1629, allocations: 0 / 0.7689 GB, free: 5.863 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005948/0.1635, allocations: 486.1 kB / 0.7694 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.1635, allocations: 12.03 kB / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.155e-05/0.1636, allocations: 42.73 kB / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.1636, allocations: 20.84 kB / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.1638, allocations: 211.9 kB / 0.7696 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.1638, allocations: 4.375 kB / 0.7696 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.1639, allocations: 4.312 kB / 0.7696 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.164, allocations: 65.97 kB / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1641, allocations: 0 / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.1641, allocations: 0 / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1641, allocations: 4 kB / 0.7697 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.1643, allocations: 59.95 kB / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000463/0.1647, allocations: 332.8 kB / 0.7701 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.1649, allocations: 70.47 kB / 0.7701 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.693e-05/0.165, allocations: 36.91 kB / 0.7702 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.1651, allocations: 7.984 kB / 0.7702 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.1651, allocations: 34.56 kB / 0.7702 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.1651, allocations: 0 / 0.7702 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003928/0.1655, allocations: 129.6 kB / 0.7703 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.1655, allocations: 55.44 kB / 0.7704 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.1658, allocations: 262.6 kB / 0.7706 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.1658, allocations: 25.7 kB / 0.7707 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1659, allocations: 136.1 kB / 0.7708 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.166, allocations: 7.891 kB / 0.7708 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.166, allocations: 17.72 kB / 0.7708 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1662, allocations: 330.8 kB / 0.7711 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1663, allocations: 35.97 kB / 0.7712 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.426e-05/0.1664, allocations: 31.86 kB / 0.7712 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.1666, allocations: 68.75 kB / 0.7713 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1666, allocations: 0 / 0.7713 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002284/0.1668, allocations: 109.6 kB / 0.7714 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.1668, allocations: 4 kB / 0.7714 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1668, allocations: 0 / 0.7714 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1668, allocations: 3.938 kB / 0.7714 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.986e-05/0.1669, allocations: 11.98 kB / 0.7714 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1669, allocations: 0 / 0.7714 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.173e-05/0.167, allocations: 4 kB / 0.7714 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-06/0.167, allocations: 0 / 0.7714 GB, free: 3.062 MB / 0.5606 GB 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 (2): * Single equations (assignments): 2 * 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 0.0001132/0.1671, allocations: 146.4 kB / 0.7715 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.1672, allocations: 19.86 kB / 0.7716 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/0.1675, allocations: 110.5 kB / 0.7717 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1675, allocations: 0 / 0.7717 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1675, allocations: 0 / 0.7717 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1675, allocations: 4 kB / 0.7717 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.1677, allocations: 217.5 kB / 0.7719 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1677, allocations: 4 kB / 0.7719 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.545e-05/0.1678, allocations: 11.97 kB / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1678, allocations: 0 / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.1678, allocations: 0 / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.1678, allocations: 8 kB / 0.7719 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1679, allocations: 0 / 0.7719 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.1681, allocations: 207.3 kB / 0.7721 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.78e-05/0.1682, allocations: 93.05 kB / 0.7722 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.1682, allocations: 0 / 0.7722 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.229e-05/0.1683, allocations: 7.984 kB / 0.7722 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.1684, allocations: 4 kB / 0.7722 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.1684, allocations: 0 / 0.7722 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000182/0.1686, allocations: 189.9 kB / 0.7724 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1686, allocations: 0 / 0.7724 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002571/0.1688, allocations: 35.94 kB / 0.7724 GB, free: 1.922 MB / 0.5606 GB 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 (2): * Single equations (assignments): 2 * 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.0006956/0.1695, allocations: 0.7746 MB / 0.7732 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.1698, allocations: 67.88 kB / 0.7732 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1698, allocations: 4.094 kB / 0.7732 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1699, allocations: 31.98 kB / 0.7733 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1703, allocations: 46.73 kB / 0.7733 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007231/0.1711, allocations: 411.5 kB / 0.7737 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.266/0.437, allocations: 0.7254 MB / 0.7744 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.375e-05/0.4371, allocations: 9.234 kB / 0.7744 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.278e-05/0.4372, allocations: 48.94 kB / 0.7745 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.4372, allocations: 1.281 kB / 0.7745 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.4614, allocations: 3.973 MB / 0.7783 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/7.938, allocations: 7 kB / 0.7784 GB, free: 13.76 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_wSor.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor.pipe 2>&1)