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: translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008184/0.0008184, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004786/0.004786, allocations: 169.4 kB / 16.26 MB, free: 6.332 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.446/1.446, allocations: 223.3 MB / 240.3 MB, free: 5.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.003318/0.003318, allocations: 270.4 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.128/1.128, allocations: 178.9 MB / 0.5095 GB, free: 4.703 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006976/0.0006975, allocations: 16.3 kB / 0.6099 GB, free: 24.87 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2053, allocations: 90.73 MB / 0.6985 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002374/0.2077, allocations: 1.453 MB / 0.6999 GB, free: 1.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.2096, allocations: 1.023 MB / 0.7009 GB, free: 160 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.206e-05/0.2096, allocations: 0 / 0.7009 GB, free: 160 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.369e-05/0.2097, allocations: 8.484 kB / 0.7009 GB, free: 152 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001135/0.2098, allocations: 24.38 kB / 0.7009 GB, free: 128 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.2102, allocations: 133.7 kB / 0.7011 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001568/0.2104, allocations: 95.41 kB / 0.7012 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.2105, allocations: 26.98 kB / 0.7012 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.978e-05/0.2106, allocations: 31.86 kB / 0.7012 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.859e-05/0.2107, allocations: 40.5 kB / 0.7013 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.2108, allocations: 4 kB / 0.7013 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003483/0.2111, allocations: 186.2 kB / 0.7014 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.2112, allocations: 15.91 kB / 0.7015 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.728e-05/0.2112, allocations: 61.52 kB / 0.7015 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003074/0.2116, allocations: 195.5 kB / 0.7017 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2116, allocations: 0 / 0.7017 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.003e-06/0.2116, allocations: 5.688 kB / 0.7017 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.449e-06/0.2116, allocations: 0 / 0.7017 GB, free: 15.34 MB / 0.4981 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.0006276/0.2122, allocations: 415.5 kB / 0.7021 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.2123, allocations: 9.75 kB / 0.7021 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.2123, allocations: 12.84 kB / 0.7021 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.2126, allocations: 189.7 kB / 0.7023 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2126, allocations: 4.312 kB / 0.7023 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.2126, allocations: 8.375 kB / 0.7023 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.2128, allocations: 73.98 kB / 0.7024 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2128, allocations: 0 / 0.7024 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.2129, allocations: 4 kB / 0.7024 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.2129, allocations: 3.984 kB / 0.7024 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.213, allocations: 47.97 kB / 0.7024 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.2136, allocations: 407.8 kB / 0.7028 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.2138, allocations: 42.56 kB / 0.7029 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.673e-05/0.2139, allocations: 24.94 kB / 0.7029 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.214, allocations: 89.11 kB / 0.703 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.214, allocations: 34.56 kB / 0.703 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.214, allocations: 0 / 0.703 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003186/0.2144, allocations: 89.59 kB / 0.7031 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.2144, allocations: 51.41 kB / 0.7031 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.2146, allocations: 144.7 kB / 0.7033 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.2146, allocations: 25.7 kB / 0.7033 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.2147, allocations: 104 kB / 0.7034 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.2147, allocations: 11.84 kB / 0.7034 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.2147, allocations: 9.719 kB / 0.7034 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2149, allocations: 322.8 kB / 0.7037 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.457e-05/0.215, allocations: 12 kB / 0.7037 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.121e-05/0.215, allocations: 19.98 kB / 0.7038 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.2152, allocations: 44.78 kB / 0.7038 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2152, allocations: 0 / 0.7038 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001666/0.2154, allocations: 81.58 kB / 0.7039 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2154, allocations: 4 kB / 0.7039 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.2154, allocations: 0 / 0.7039 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2154, allocations: 4 kB / 0.7039 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.2155, allocations: 11.98 kB / 0.7039 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2156, allocations: 0 / 0.7039 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.706e-05/0.2156, allocations: 11.84 kB / 0.7039 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2156, allocations: 0 / 0.7039 GB, free: 12.82 MB / 0.4981 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 0.0001139/0.2157, allocations: 118.5 kB / 0.704 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.2158, allocations: 4 kB / 0.704 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000233/0.216, allocations: 97.8 kB / 0.7041 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.216, allocations: 0 / 0.7041 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.216, allocations: 3.984 kB / 0.7041 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2161, allocations: 3.938 kB / 0.7041 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.2163, allocations: 185.7 kB / 0.7043 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2163, allocations: 4.312 kB / 0.7043 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-05/0.2164, allocations: 15.98 kB / 0.7043 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2164, allocations: 0 / 0.7043 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.2164, allocations: 4 kB / 0.7043 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2164, allocations: 0 / 0.7043 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2164, allocations: 0 / 0.7043 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.2167, allocations: 183.3 kB / 0.7045 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.358e-05/0.2167, allocations: 81.11 kB / 0.7046 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.2168, allocations: 4 kB / 0.7046 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.214e-05/0.2169, allocations: 15.89 kB / 0.7046 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.2169, allocations: 3.938 kB / 0.7046 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.2169, allocations: 0 / 0.7046 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.318e-05/0.217, allocations: 109.1 kB / 0.7047 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.217, allocations: 0 / 0.7047 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003305/0.2173, allocations: 67.88 kB / 0.7048 GB, free: 11.84 MB / 0.4981 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.0002805/0.2176, allocations: 155.1 kB / 0.7049 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000172/0.2178, allocations: 47.97 kB / 0.705 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2178, allocations: 0 / 0.705 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.2179, allocations: 23.94 kB / 0.705 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.2182, allocations: 15.94 kB / 0.705 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.2187, allocations: 261.3 kB / 0.7053 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.219, allocations: 0.6965 MB / 0.7059 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.805e-05/0.2191, allocations: 8 kB / 0.7059 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.2191, allocations: 15.42 kB / 0.706 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.2191, allocations: 0 / 0.706 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.005086/0.2242, allocations: 1.706 MB / 0.7076 GB, free: 8.875 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (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 & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)