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.00462/0.00462, allocations: 97.78 kB / 15.73 MB, free: 5.996 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.00106/0.00106, allocations: 186 kB / 16.67 MB, free: 5.926 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.00208, allocations: 275 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.928/0.928, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 96.19 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1449, allocations: 86.97 MB / 0.7659 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.wSor): time 0.002769/0.1477, allocations: 1.698 MB / 0.7675 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008342/0.1486, allocations: 0.5063 MB / 0.768 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.509e-05/0.1487, allocations: 0 / 0.768 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004222/0.1491, allocations: 155.4 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.1492, allocations: 47.73 kB / 0.7682 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1495, allocations: 71.73 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.1497, allocations: 103.5 kB / 0.7684 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.926e-05/0.1498, allocations: 4.281 kB / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/0.1499, allocations: 35.84 kB / 0.7684 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.929e-05/0.15, allocations: 59.69 kB / 0.7685 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.15, allocations: 0 / 0.7685 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.1501, allocations: 87.84 kB / 0.7686 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.177e-05/0.1502, allocations: 51.86 kB / 0.7686 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.1503, allocations: 63.56 kB / 0.7687 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.1506, allocations: 203 kB / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1506, allocations: 0 / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1506, allocations: 4 kB / 0.7689 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.1506, allocations: 0 / 0.7689 GB, free: 5.816 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.0005508/0.1512, allocations: 490.1 kB / 0.7694 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.1512, allocations: 8.031 kB / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.044e-05/0.1512, allocations: 34.75 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.1513, allocations: 16.84 kB / 0.7694 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.1514, allocations: 219.9 kB / 0.7696 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.1514, allocations: 384 / 0.7696 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.1515, allocations: 8.375 kB / 0.7696 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.1516, allocations: 61.98 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.1516, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.1517, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1517, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.1519, allocations: 59.94 kB / 0.7697 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004357/0.1523, allocations: 344.7 kB / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.1525, allocations: 62.59 kB / 0.7701 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.62e-05/0.1526, allocations: 36.83 kB / 0.7702 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1526, allocations: 8 kB / 0.7702 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.1526, allocations: 30.56 kB / 0.7702 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1526, allocations: 4 kB / 0.7702 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003921/0.153, allocations: 137.5 kB / 0.7703 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.915e-05/0.1531, allocations: 55.34 kB / 0.7704 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.1533, allocations: 258.7 kB / 0.7706 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.1533, allocations: 25.7 kB / 0.7707 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.02e-05/0.1534, allocations: 140.1 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.1535, allocations: 12.02 kB / 0.7708 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.1535, allocations: 13.72 kB / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1536, allocations: 334.8 kB / 0.7711 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-05/0.1537, allocations: 23.98 kB / 0.7712 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.922e-05/0.1538, allocations: 31.97 kB / 0.7712 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.154, allocations: 72.75 kB / 0.7713 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.154, allocations: 4 kB / 0.7713 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002171/0.1542, allocations: 105.5 kB / 0.7714 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1542, allocations: 6.188 kB / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1543, allocations: 0 / 0.7714 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1543, allocations: 3.984 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.437e-05/0.1544, allocations: 8 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1544, allocations: 32 / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.489e-05/0.1545, allocations: 11.98 kB / 0.7714 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-06/0.1545, allocations: 0 / 0.7714 GB, free: 3.016 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 8.94e-05/0.1546, allocations: 142.4 kB / 0.7715 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.1546, allocations: 19.86 kB / 0.7716 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000265/0.1549, allocations: 114.4 kB / 0.7717 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1549, allocations: 0 / 0.7717 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.1549, allocations: 4.031 kB / 0.7717 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1549, allocations: 3.984 kB / 0.7717 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/0.1551, allocations: 217.6 kB / 0.7719 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1551, allocations: 4 kB / 0.7719 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.995e-05/0.1552, allocations: 11.98 kB / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1552, allocations: 0 / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.1552, allocations: 0 / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1552, allocations: 0 / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1552, allocations: 0 / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/0.1555, allocations: 215.3 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.1555, allocations: 89.02 kB / 0.7722 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.1556, allocations: 0 / 0.7722 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-05/0.1557, allocations: 7.984 kB / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.1557, allocations: 0 / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.1557, allocations: 0 / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001546/0.1559, allocations: 201.9 kB / 0.7724 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1559, allocations: 0 / 0.7724 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002562/0.1561, allocations: 39.94 kB / 0.7724 GB, free: 1.863 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.0005796/0.1567, allocations: 0.7746 MB / 0.7732 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002262/0.157, allocations: 59.95 kB / 0.7732 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.157, allocations: 3.938 kB / 0.7732 GB, free: 1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.354e-05/0.1571, allocations: 35.91 kB / 0.7733 GB, free: 0.9648 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.1575, allocations: 40.64 kB / 0.7733 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000651/0.1582, allocations: 399.5 kB / 0.7737 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2772/0.4354, allocations: 0.7299 MB / 0.7744 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.348e-05/0.4355, allocations: 10.17 kB / 0.7744 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.4355, allocations: 51.62 kB / 0.7745 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.4355, allocations: 1.344 kB / 0.7745 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.4539, allocations: 3.976 MB / 0.7783 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.083/7.537, allocations: 5.094 kB / 0.7784 GB, free: 13.71 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)