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.001182/0.001182, allocations: 108 kB / 15.6 MB, free: 132 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.001901/0.001901, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.271/1.271, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001947/0.001947, allocations: 290.6 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9138/0.9138, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 96.39 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.141, allocations: 86.98 MB / 0.6803 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003237/0.1443, allocations: 1.719 MB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.146, allocations: 1.029 MB / 0.683 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.1461, allocations: 4 kB / 0.683 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.322e-05/0.1461, allocations: 11.86 kB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.458e-05/0.1462, allocations: 27.77 kB / 0.683 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005139/0.1468, allocations: 176.5 kB / 0.6832 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.1469, allocations: 91.48 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.147, allocations: 44.17 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.731e-05/0.1471, allocations: 35.86 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.443e-05/0.1472, allocations: 39.78 kB / 0.6834 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.786e-05/0.1473, allocations: 8 kB / 0.6834 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003528/0.1476, allocations: 187.8 kB / 0.6836 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.184e-05/0.1476, allocations: 15.92 kB / 0.6836 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.836e-05/0.1477, allocations: 43.8 kB / 0.6836 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003252/0.148, allocations: 195.6 kB / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.148, allocations: 3.938 kB / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1481, allocations: 0 / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1481, allocations: 0 / 0.6838 GB, free: 13 MB / 494.1 MB 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.0004992/0.1486, allocations: 423 kB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1486, allocations: 12.03 kB / 0.6842 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.1487, allocations: 38.75 kB / 0.6842 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.586e-05/0.1487, allocations: 8.844 kB / 0.6843 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1488, allocations: 188.1 kB / 0.6844 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.1489, allocations: 8.375 kB / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-06/0.1489, allocations: 384 / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.1491, allocations: 77.72 kB / 0.6845 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1491, allocations: 0 / 0.6845 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.1491, allocations: 8 kB / 0.6845 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1491, allocations: 0 / 0.6845 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.1492, allocations: 47.97 kB / 0.6846 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.1497, allocations: 391.9 kB / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.1498, allocations: 42.56 kB / 0.685 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.803e-05/0.1499, allocations: 28.94 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.15, allocations: 85.09 kB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.1501, allocations: 30.56 kB / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1501, allocations: 0 / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002592/0.1503, allocations: 93.5 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.1504, allocations: 51.41 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.1505, allocations: 143.6 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.1505, allocations: 25.7 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.766e-05/0.1506, allocations: 108 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.1506, allocations: 7.906 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.1506, allocations: 13.72 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1508, allocations: 322.8 kB / 0.6859 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.405e-05/0.1509, allocations: 15.98 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.151, allocations: 12 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.1511, allocations: 41.12 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1511, allocations: 0 / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000155/0.1513, allocations: 81.5 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.1513, allocations: 4 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1513, allocations: 0 / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.1513, allocations: 0 / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.1514, allocations: 11.98 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1514, allocations: 3.938 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.616e-05/0.1515, allocations: 4 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1515, allocations: 4 kB / 0.686 GB, free: 10.45 MB / 494.1 MB 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.195e-05/0.1516, allocations: 119.1 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-05/0.1516, allocations: 7.906 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002098/0.1518, allocations: 85.84 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1519, allocations: 0 / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1519, allocations: 12.05 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1519, allocations: 3.938 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.1521, allocations: 185.6 kB / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1521, allocations: 0 / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.596e-05/0.1522, allocations: 11.98 kB / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1522, allocations: 0 / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.1522, allocations: 0 / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1522, allocations: 3.984 kB / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1522, allocations: 7.875 kB / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.1524, allocations: 171.4 kB / 0.6866 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.1525, allocations: 92.89 kB / 0.6867 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.1525, allocations: 7.984 kB / 0.6867 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.136e-05/0.1526, allocations: 4 kB / 0.6867 GB, free: 9.645 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.217e-05/0.1526, allocations: 3.938 kB / 0.6867 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1526, allocations: 0 / 0.6867 GB, free: 9.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.909e-05/0.1527, allocations: 109.1 kB / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1527, allocations: 0 / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1531, allocations: 63.94 kB / 0.6869 GB, free: 9.473 MB / 494.1 MB 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.0006796/0.1537, allocations: 0.7592 MB / 0.6876 GB, free: 8.688 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.1539, allocations: 43.91 kB / 0.6877 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1539, allocations: 0 / 0.6877 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.78e-05/0.154, allocations: 19.98 kB / 0.6877 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.1543, allocations: 23.89 kB / 0.6877 GB, free: 8.602 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.1559, allocations: 1.482 MB / 0.6891 GB, free: 7.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.1561, allocations: 0.6924 MB / 0.6898 GB, free: 6.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.965e-05/0.1562, allocations: 7.984 kB / 0.6898 GB, free: 6.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.1562, allocations: 27.42 kB / 0.6899 GB, free: 6.293 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1563, allocations: 0 / 0.6899 GB, free: 6.293 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1567/0.313, allocations: 3.065 MB / 0.6929 GB, free: 3.297 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.152/7.465, allocations: 9.344 kB / 0.6929 GB, free: 3.293 MB / 494.1 MB (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)