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: "" <> buildModelFMU(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap",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.008837/0.008837, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001968/0.001968, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.292/1.292, 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.002219/0.002219, allocations: 278.9 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.9335/0.9335, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 98.83 kB / 0.6809 GB, free: 56 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1514, allocations: 86.98 MB / 0.7659 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap): time 0.002217/0.1537, allocations: 1.251 MB / 0.7671 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.155, allocations: 0.8574 MB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.489e-05/0.155, allocations: 3.938 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.094e-05/0.155, allocations: 0 / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.1551, allocations: 7.938 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005624/0.1557, allocations: 143.4 kB / 0.7681 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.479e-05/0.1558, allocations: 23.92 kB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.635e-05/0.1558, allocations: 8 kB / 0.7681 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.028e-05/0.1559, allocations: 19.91 kB / 0.7681 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.921e-05/0.156, allocations: 15.92 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.156, allocations: 4 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.1563, allocations: 159.8 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.393e-05/0.1563, allocations: 8 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.35e-05/0.1563, allocations: 7.938 kB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.1566, allocations: 131.9 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1566, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1566, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.1566, allocations: 0 / 0.7684 GB, free: 6.352 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003794/0.157, allocations: 355.2 kB / 0.7688 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.157, allocations: 8.031 kB / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.73e-05/0.157, allocations: 38.75 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.669e-05/0.1571, allocations: 4.938 kB / 0.7688 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.744e-05/0.1572, allocations: 172.3 kB / 0.769 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1572, allocations: 4.375 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-06/0.1572, allocations: 384 / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.799e-05/0.1573, allocations: 45.81 kB / 0.769 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1573, allocations: 0 / 0.769 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1574, allocations: 3.984 kB / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1574, allocations: 0 / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.295e-05/0.1574, allocations: 23.98 kB / 0.7691 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.1576, allocations: 161.7 kB / 0.7692 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.158e-05/0.1577, allocations: 46.5 kB / 0.7693 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.1577, allocations: 12.86 kB / 0.7693 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.1578, allocations: 93.22 kB / 0.7694 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1579, allocations: 34.5 kB / 0.7694 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.1579, allocations: 0 / 0.7694 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.0001729/0.1581, allocations: 65.64 kB / 0.7695 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.1581, allocations: 51.41 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.271e-05/0.1582, allocations: 105.7 kB / 0.7696 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.1582, allocations: 33.69 kB / 0.7696 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.513e-05/0.1582, allocations: 80.14 kB / 0.7697 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.1582, allocations: 7.906 kB / 0.7697 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.1583, allocations: 21.72 kB / 0.7697 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.437e-05/0.1584, allocations: 314.8 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.379e-05/0.1584, allocations: 11.94 kB / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.972e-05/0.1584, allocations: 12.12 kB / 0.7701 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.227e-05/0.1585, allocations: 28.84 kB / 0.7701 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1585, allocations: 0 / 0.7701 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.085e-05/0.1586, allocations: 58.02 kB / 0.7702 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1586, allocations: 7.984 kB / 0.7702 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1586, allocations: 3.938 kB / 0.7702 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.1586, allocations: 64 / 0.7702 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.448e-05/0.1587, allocations: 12 kB / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1587, allocations: 0 / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.599e-05/0.1588, allocations: 7.891 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.1588, allocations: 8 kB / 0.7702 GB, free: 4.305 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 (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.224e-05/0.1588, allocations: 106.5 kB / 0.7703 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.365e-05/0.1589, allocations: 7.938 kB / 0.7703 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001696/0.159, allocations: 81.22 kB / 0.7704 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-06/0.159, allocations: 7.938 kB / 0.7704 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1591, allocations: 0 / 0.7704 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1591, allocations: 4 kB / 0.7704 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1592, allocations: 161.7 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1592, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.94e-05/0.1592, allocations: 11.94 kB / 0.7706 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.1592, allocations: 0 / 0.7706 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.1593, allocations: 0 / 0.7706 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1593, allocations: 7.984 kB / 0.7706 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1593, allocations: 0 / 0.7706 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.1594, allocations: 93.06 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.098e-05/0.1594, allocations: 85.05 kB / 0.7707 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.1594, allocations: 0 / 0.7707 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.377e-05/0.1595, allocations: 0 / 0.7707 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.1595, allocations: 11.92 kB / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.1595, allocations: 3.938 kB / 0.7707 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.329e-05/0.1595, allocations: 83.28 kB / 0.7708 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1595, allocations: 0 / 0.7708 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002584/0.1598, allocations: 43.81 kB / 0.7709 GB, free: 3.512 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 (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.0004874/0.1603, allocations: 0.6866 MB / 0.7715 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.77e-05/0.1604, allocations: 31.92 kB / 0.7716 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1604, allocations: 0 / 0.7716 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.868e-05/0.1604, allocations: 16 kB / 0.7716 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.1606, allocations: 6.328 kB / 0.7716 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.161, allocations: 195.9 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.1612, allocations: 0.6729 MB / 0.7724 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.616e-05/0.1613, allocations: 15.97 kB / 0.7725 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.1613, allocations: 19.44 kB / 0.7725 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1613, allocations: 0 / 0.7725 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3036/0.4649, allocations: 2.109 MB / 0.7745 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.989/7.454, allocations: 8.062 kB / 0.7745 GB, free: 14.08 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_HAM_ConvectiveHeatTransfer_Examples_AlphaGap.fmu > BuildingSystems_BuildingSystems.HAM.ConvectiveHeatTransfer.Examples.AlphaGap.pipe 2>&1)