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.001335/0.001335, allocations: 112.5 kB / 15.74 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 198 kB / 16.67 MB, free: 6.582 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00254/0.00254, allocations: 278.5 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 95.84 kB / 0.6809 GB, free: 36 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1801, allocations: 86.97 MB / 0.7658 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002934/0.1831, allocations: 1.741 MB / 0.7675 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.1848, allocations: 1.021 MB / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.408e-05/0.1849, allocations: 0 / 0.7685 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.433e-05/0.1849, allocations: 11.86 kB / 0.7686 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.185, allocations: 23.78 kB / 0.7686 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.1856, allocations: 167.4 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001605/0.1858, allocations: 107.5 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1859, allocations: 40.41 kB / 0.7689 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.874e-05/0.186, allocations: 35.86 kB / 0.7689 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.545e-05/0.1861, allocations: 39.78 kB / 0.7689 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.1861, allocations: 8 kB / 0.769 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003475/0.1865, allocations: 195.8 kB / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.417e-05/0.1865, allocations: 19.91 kB / 0.7692 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.096e-05/0.1866, allocations: 39.8 kB / 0.7692 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003215/0.1869, allocations: 203.4 kB / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1869, allocations: 0 / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.898e-06/0.1869, allocations: 0 / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.1869, allocations: 7.875 kB / 0.7694 GB, free: 5.32 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.0006032/0.1875, allocations: 418.7 kB / 0.7698 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1876, allocations: 12.03 kB / 0.7698 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.1876, allocations: 34.75 kB / 0.7698 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.1877, allocations: 8.891 kB / 0.7699 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.1879, allocations: 192.2 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1879, allocations: 8.312 kB / 0.77 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.1879, allocations: 4.375 kB / 0.77 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.1881, allocations: 73.8 kB / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1881, allocations: 0 / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.1881, allocations: 0 / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1881, allocations: 0 / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.1883, allocations: 47.97 kB / 0.7702 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/0.1888, allocations: 399.9 kB / 0.7705 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.189, allocations: 46.56 kB / 0.7706 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.189, allocations: 20.94 kB / 0.7706 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.1892, allocations: 89.11 kB / 0.7707 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1892, allocations: 38.55 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1892, allocations: 0 / 0.7707 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002722/0.1895, allocations: 85.56 kB / 0.7708 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.1896, allocations: 51.41 kB / 0.7709 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.1897, allocations: 144.7 kB / 0.771 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.1897, allocations: 25.7 kB / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.1898, allocations: 108.1 kB / 0.7711 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.1898, allocations: 7.891 kB / 0.7711 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.9e-05/0.1899, allocations: 21.7 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.19, allocations: 310.8 kB / 0.7715 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.575e-05/0.1901, allocations: 15.98 kB / 0.7715 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.297e-05/0.1901, allocations: 12 kB / 0.7715 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.1903, allocations: 49.05 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1903, allocations: 0 / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000151/0.1904, allocations: 73.62 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1905, allocations: 4 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1905, allocations: 3.984 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.1905, allocations: 0 / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1906, allocations: 8 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.1906, allocations: 3.938 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.092e-05/0.1907, allocations: 7.984 kB / 0.7716 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.1907, allocations: 0 / 0.7716 GB, free: 2.777 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 9.805e-05/0.1908, allocations: 118.5 kB / 0.7717 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.1908, allocations: 7.953 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.191, allocations: 93.78 kB / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1911, allocations: 0 / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1911, allocations: 3.938 kB / 0.7718 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1911, allocations: 0 / 0.7718 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.1913, allocations: 181.8 kB / 0.772 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1914, allocations: 7.922 kB / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.639e-05/0.1914, allocations: 8 kB / 0.772 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1914, allocations: 4 kB / 0.772 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.1915, allocations: 0 / 0.772 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1915, allocations: 4 kB / 0.772 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.1915, allocations: 7.922 kB / 0.772 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.1917, allocations: 175.4 kB / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.171e-05/0.1918, allocations: 81.06 kB / 0.7723 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.1918, allocations: 0 / 0.7723 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.517e-05/0.1919, allocations: 8 kB / 0.7723 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.1919, allocations: 3.938 kB / 0.7723 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1919, allocations: 7.984 kB / 0.7723 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.552e-05/0.192, allocations: 107.2 kB / 0.7724 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.192, allocations: 0 / 0.7724 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004299/0.1925, allocations: 67.73 kB / 0.7725 GB, free: 1.805 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.0007138/0.1932, allocations: 0.7668 MB / 0.7732 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000176/0.1934, allocations: 31.98 kB / 0.7732 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1934, allocations: 0 / 0.7732 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.273e-05/0.1935, allocations: 23.98 kB / 0.7733 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.1939, allocations: 19.92 kB / 0.7733 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3411/0.535, allocations: 1.48 MB / 0.7747 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.5353, allocations: 0.6946 MB / 0.7754 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.066e-05/0.5353, allocations: 10.23 kB / 0.7754 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.863e-05/0.5354, allocations: 28.16 kB / 0.7755 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of SimCode: time 1.233e-06/0.5354, allocations: 0.5312 kB / 0.7755 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1577/0.6931, allocations: 3.11 MB / 0.7785 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.146/8.839, allocations: 10.73 kB / 0.7785 GB, free: 12.68 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)