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.001247/0.001247, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001147/0.001147, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.165/1.165, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001918/0.001918, allocations: 306.4 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8807/0.8807, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 88.53 kB / 0.5948 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.125, allocations: 86.99 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002683/0.1277, allocations: 1.792 MB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.129, allocations: 1.011 MB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.207e-05/0.1291, allocations: 7.938 kB / 0.6825 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.555e-05/0.1291, allocations: 11.92 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.253e-05/0.1292, allocations: 23.78 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004349/0.1297, allocations: 151.5 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.1298, allocations: 87.55 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.1299, allocations: 40.19 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.888e-05/0.13, allocations: 39.8 kB / 0.6828 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.82e-05/0.1301, allocations: 35.84 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1301, allocations: 8 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002932/0.1304, allocations: 187.8 kB / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.454e-05/0.1304, allocations: 15.92 kB / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.1305, allocations: 43.8 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.1308, allocations: 199.5 kB / 0.6833 GB, free: 13.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1308, allocations: 4 kB / 0.6833 GB, free: 13.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1308, allocations: 0 / 0.6833 GB, free: 13.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1308, allocations: 4 kB / 0.6833 GB, free: 13.31 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.0004669/0.1313, allocations: 415 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.1313, allocations: 12.03 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.1314, allocations: 38.73 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.1314, allocations: 8.844 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.1316, allocations: 194.1 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.1316, allocations: 12.38 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-06/0.1316, allocations: 384 / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.1317, allocations: 73.73 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1318, allocations: 0 / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.1318, allocations: 8 kB / 0.684 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1318, allocations: 0 / 0.684 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.1319, allocations: 47.91 kB / 0.6841 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004418/0.1324, allocations: 392 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.1325, allocations: 42.56 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.243e-05/0.1325, allocations: 24.94 kB / 0.6845 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.95e-05/0.1326, allocations: 81.11 kB / 0.6846 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.1327, allocations: 38.56 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1327, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002452/0.1329, allocations: 89.5 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/0.1329, allocations: 51.41 kB / 0.6847 GB, free: 11.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1331, allocations: 139.3 kB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1331, allocations: 29.7 kB / 0.6849 GB, free: 11.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.1331, allocations: 108 kB / 0.685 GB, free: 11.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.1331, allocations: 7.906 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1332, allocations: 13.72 kB / 0.685 GB, free: 11.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1333, allocations: 322.8 kB / 0.6853 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-05/0.1333, allocations: 15.98 kB / 0.6853 GB, free: 10.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.06e-05/0.1334, allocations: 12 kB / 0.6854 GB, free: 10.93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.1335, allocations: 40.83 kB / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1335, allocations: 0 / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000135/0.1336, allocations: 77.53 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1337, allocations: 4 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.1337, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.1337, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.466e-05/0.1338, allocations: 11.98 kB / 0.6855 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1338, allocations: 3.938 kB / 0.6855 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.801e-05/0.1338, allocations: 7.984 kB / 0.6855 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1339, allocations: 336 / 0.6855 GB, free: 10.78 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 7.598e-05/0.1339, allocations: 115.2 kB / 0.6856 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.134, allocations: 11.91 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.1342, allocations: 89.94 kB / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-06/0.1342, allocations: 7.938 kB / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1342, allocations: 3.938 kB / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1342, allocations: 0 / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.1344, allocations: 181.6 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1344, allocations: 0 / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.136e-05/0.1345, allocations: 15.98 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1345, allocations: 4 kB / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.1345, allocations: 0 / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1345, allocations: 0 / 0.6859 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1345, allocations: 3.938 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001714/0.1347, allocations: 171.4 kB / 0.6861 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.222e-05/0.1347, allocations: 96.94 kB / 0.6862 GB, free: 9.984 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.1347, allocations: 0 / 0.6862 GB, free: 9.984 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.399e-05/0.1348, allocations: 4 kB / 0.6862 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.1349, allocations: 7.938 kB / 0.6862 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1349, allocations: 4 kB / 0.6862 GB, free: 9.969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.999e-05/0.1349, allocations: 109.1 kB / 0.6863 GB, free: 9.863 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1349, allocations: 0 / 0.6863 GB, free: 9.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.1352, allocations: 67.92 kB / 0.6864 GB, free: 9.797 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.0005361/0.1358, allocations: 0.7631 MB / 0.6871 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001393/0.1359, allocations: 39.86 kB / 0.6871 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.1359, allocations: 0 / 0.6871 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.623e-05/0.136, allocations: 23.98 kB / 0.6872 GB, free: 8.945 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.1363, allocations: 15.89 kB / 0.6872 GB, free: 8.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.1375, allocations: 1.5 MB / 0.6886 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.1377, allocations: 0.6924 MB / 0.6893 GB, free: 6.637 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.563e-05/0.1378, allocations: 12.31 kB / 0.6893 GB, free: 6.625 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.1378, allocations: 23.44 kB / 0.6893 GB, free: 6.602 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1378, allocations: 0 / 0.6893 GB, free: 6.602 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2792/0.417, allocations: 2.968 MB / 0.6922 GB, free: 3.75 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/0.4172, allocations: 194.4 kB / 0.6924 GB, free: 3.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.384, allocations: 0 / 0.6924 GB, free: 3.492 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)