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: "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",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.005301/0.005301, allocations: 101.6 kB / 15.73 MB, free: 6.035 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.001162/0.001162, allocations: 189.4 kB / 16.67 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002112/0.002112, allocations: 286.6 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.9431/0.9431, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 91.84 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.168, allocations: 86.98 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002927/0.171, allocations: 1.727 MB / 0.7675 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1726, allocations: 1.029 MB / 0.7686 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.436e-05/0.1727, allocations: 4 kB / 0.7686 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.084e-05/0.1728, allocations: 7.922 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.1729, allocations: 35.64 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005375/0.1734, allocations: 167.4 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.1736, allocations: 95.47 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1737, allocations: 32.2 kB / 0.7689 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.419e-05/0.1738, allocations: 35.91 kB / 0.7689 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.089e-05/0.1739, allocations: 47.73 kB / 0.769 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1739, allocations: 12 kB / 0.769 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003387/0.1743, allocations: 183.8 kB / 0.7691 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.1743, allocations: 23.86 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.949e-05/0.1744, allocations: 35.81 kB / 0.7692 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.1747, allocations: 195.6 kB / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1747, allocations: 0 / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.186e-06/0.1747, allocations: 0 / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.1747, allocations: 3.938 kB / 0.7694 GB, free: 5.324 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006141/0.1754, allocations: 430.9 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1754, allocations: 8.031 kB / 0.7698 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.1755, allocations: 46.72 kB / 0.7699 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.1755, allocations: 8.844 kB / 0.7699 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.1757, allocations: 188.2 kB / 0.77 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.1757, allocations: 384 / 0.77 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.1757, allocations: 8.375 kB / 0.7701 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.1759, allocations: 77.72 kB / 0.7701 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1759, allocations: 0 / 0.7701 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.176, allocations: 4 kB / 0.7701 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.176, allocations: 8 kB / 0.7701 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.1761, allocations: 43.98 kB / 0.7702 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004932/0.1766, allocations: 388 kB / 0.7706 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.1767, allocations: 46.56 kB / 0.7706 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.185e-05/0.1768, allocations: 20.86 kB / 0.7706 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.1769, allocations: 89.19 kB / 0.7707 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.1769, allocations: 30.56 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.1769, allocations: 0 / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002602/0.1772, allocations: 85.52 kB / 0.7708 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.1772, allocations: 51.41 kB / 0.7709 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1774, allocations: 152.5 kB / 0.771 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.1774, allocations: 25.7 kB / 0.771 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.1775, allocations: 99.98 kB / 0.7711 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.1775, allocations: 15.89 kB / 0.7711 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.1775, allocations: 9.719 kB / 0.7711 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1776, allocations: 322.8 kB / 0.7715 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.789e-05/0.1777, allocations: 12 kB / 0.7715 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.005e-05/0.1777, allocations: 19.92 kB / 0.7715 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.497e-05/0.1778, allocations: 36.84 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1778, allocations: 0 / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000144/0.178, allocations: 73.52 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.178, allocations: 10.34 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.178, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.178, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.823e-05/0.1781, allocations: 11.98 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.1781, allocations: 3.938 kB / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.514e-05/0.1782, allocations: 8 kB / 0.7716 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.1782, allocations: 4 kB / 0.7716 GB, free: 2.77 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 (3): * Single equations (assignments): 3 * 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.882e-05/0.1783, allocations: 106.5 kB / 0.7717 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.1783, allocations: 12.23 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.1785, allocations: 89.83 kB / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1785, allocations: 0 / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1786, allocations: 3.938 kB / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1786, allocations: 0 / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.1787, allocations: 205.6 kB / 0.772 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1788, allocations: 7.938 kB / 0.772 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.1788, allocations: 11.98 kB / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1788, allocations: 0 / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1789, allocations: 0 / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1789, allocations: 0 / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1789, allocations: 3.938 kB / 0.7721 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.179, allocations: 167.4 kB / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.1791, allocations: 89.05 kB / 0.7723 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.1791, allocations: 0 / 0.7723 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.1792, allocations: 3.984 kB / 0.7723 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.1792, allocations: 15.94 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1792, allocations: 0 / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.114e-05/0.1793, allocations: 103.3 kB / 0.7724 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1793, allocations: 0 / 0.7724 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003114/0.1796, allocations: 63.83 kB / 0.7725 GB, free: 1.801 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 (4): * Single equations (assignments): 4 * 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.0006042/0.1802, allocations: 0.7631 MB / 0.7732 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001468/0.1804, allocations: 43.91 kB / 0.7733 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1804, allocations: 0 / 0.7733 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.151e-05/0.1805, allocations: 27.92 kB / 0.7733 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.1808, allocations: 18.19 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.3164/0.4972, allocations: 1.466 MB / 0.7747 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.4974, allocations: 0.693 MB / 0.7754 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.546e-05/0.4975, allocations: 6.844 kB / 0.7754 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.019e-05/0.4975, allocations: 24.86 kB / 0.7754 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of SimCode: time 9.82e-07/0.4975, allocations: 0 / 0.7754 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.5177, allocations: 3.135 MB / 0.7785 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.71, allocations: 9.312 kB / 0.7785 GB, free: 12.66 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)