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.004416/0.004416, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001028/0.001028, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002002/0.002002, allocations: 295.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9368/0.9368, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 95.83 kB / 0.6814 GB, free: 7.035 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4152, allocations: 86.97 MB / 0.7663 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.00266/0.4179, allocations: 1.728 MB / 0.768 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001521/0.4194, allocations: 1.038 MB / 0.769 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.4195, allocations: 0 / 0.769 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/0.4196, allocations: 7.875 kB / 0.769 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.4197, allocations: 23.78 kB / 0.7691 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.4203, allocations: 175.3 kB / 0.7692 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.4204, allocations: 91.53 kB / 0.7693 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.4205, allocations: 43.94 kB / 0.7694 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.398e-05/0.4206, allocations: 35.86 kB / 0.7694 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.724e-05/0.4207, allocations: 43.78 kB / 0.7694 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.4208, allocations: 8 kB / 0.7694 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000364/0.4211, allocations: 191.7 kB / 0.7696 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.87e-05/0.4212, allocations: 4 kB / 0.7696 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.161e-05/0.4212, allocations: 47.73 kB / 0.7697 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.4215, allocations: 209.2 kB / 0.7699 GB, free: 308 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4215, allocations: 0 / 0.7699 GB, free: 308 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4215, allocations: 0 / 0.7699 GB, free: 308 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.4216, allocations: 0 / 0.7699 GB, free: 308 kB / 0.5294 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.0005126/0.4221, allocations: 422.7 kB / 0.7703 GB, free: 15.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.4221, allocations: 15.97 kB / 0.7703 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.4222, allocations: 8.891 kB / 0.7703 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.4223, allocations: 194.8 kB / 0.7705 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.4224, allocations: 4.312 kB / 0.7705 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.4224, allocations: 4.375 kB / 0.7705 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.4225, allocations: 77.92 kB / 0.7706 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.4226, allocations: 0 / 0.7706 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4226, allocations: 4 kB / 0.7706 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.4226, allocations: 4 kB / 0.7706 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.4227, allocations: 43.97 kB / 0.7706 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004673/0.4232, allocations: 392 kB / 0.771 GB, free: 15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.4233, allocations: 42.56 kB / 0.771 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.848e-05/0.4234, allocations: 28.94 kB / 0.7711 GB, free: 14.92 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.4235, allocations: 85.11 kB / 0.7711 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.4235, allocations: 34.55 kB / 0.7712 GB, free: 14.78 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4235, allocations: 0 / 0.7712 GB, free: 14.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0002665/0.4238, allocations: 85.56 kB / 0.7713 GB, free: 14.69 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.4238, allocations: 51.41 kB / 0.7713 GB, free: 14.62 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.424, allocations: 144.3 kB / 0.7714 GB, free: 14.47 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.424, allocations: 33.64 kB / 0.7715 GB, free: 14.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.499e-05/0.424, allocations: 104 kB / 0.7716 GB, free: 14.33 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.4241, allocations: 7.953 kB / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.4241, allocations: 17.7 kB / 0.7716 GB, free: 14.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.4242, allocations: 318.8 kB / 0.7719 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.209e-05/0.4243, allocations: 15.98 kB / 0.7719 GB, free: 13.96 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.11e-05/0.4243, allocations: 8 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.937e-05/0.4244, allocations: 48.77 kB / 0.772 GB, free: 13.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4244, allocations: 0 / 0.772 GB, free: 13.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001373/0.4246, allocations: 65.97 kB / 0.772 GB, free: 13.83 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.4246, allocations: 8 kB / 0.772 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4246, allocations: 7.922 kB / 0.7721 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.4246, allocations: 0 / 0.7721 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.591e-05/0.4247, allocations: 4 kB / 0.7721 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.4247, allocations: 4 kB / 0.7721 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.851e-05/0.4248, allocations: 15.92 kB / 0.7721 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.4248, allocations: 3.984 kB / 0.7721 GB, free: 13.79 MB / 0.545 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.646e-05/0.4249, allocations: 113.8 kB / 0.7722 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.4249, allocations: 11.94 kB / 0.7722 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002028/0.4251, allocations: 89.84 kB / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.4251, allocations: 0 / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4251, allocations: 0 / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4251, allocations: 3.938 kB / 0.7723 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.4253, allocations: 189.6 kB / 0.7725 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.4253, allocations: 7.984 kB / 0.7725 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.4254, allocations: 4 kB / 0.7725 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4254, allocations: 4 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.4254, allocations: 4 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4254, allocations: 0 / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4254, allocations: 3.984 kB / 0.7725 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000187/0.4256, allocations: 179.4 kB / 0.7727 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.4257, allocations: 85.06 kB / 0.7727 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.4257, allocations: 0 / 0.7727 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.17e-05/0.4258, allocations: 0 / 0.7727 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.4258, allocations: 7.938 kB / 0.7728 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.4258, allocations: 7.922 kB / 0.7728 GB, free: 12.99 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.442e-05/0.4259, allocations: 111.2 kB / 0.7729 GB, free: 12.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4259, allocations: 0 / 0.7729 GB, free: 12.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000295/0.4262, allocations: 59.8 kB / 0.7729 GB, free: 12.82 MB / 0.545 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.0002342/0.4264, allocations: 169.5 kB / 0.7731 GB, free: 12.65 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001607/0.4266, allocations: 35.98 kB / 0.7731 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4266, allocations: 0 / 0.7731 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.19e-05/0.4267, allocations: 23.92 kB / 0.7731 GB, free: 12.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.427, allocations: 11.94 kB / 0.7732 GB, free: 12.58 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003461/0.4273, allocations: 214.8 kB / 0.7734 GB, free: 12.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.4276, allocations: 0.6962 MB / 0.774 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.376e-05/0.4276, allocations: 4 kB / 0.774 GB, free: 11.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3e-05/0.4277, allocations: 19.42 kB / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4277, allocations: 0 / 0.7741 GB, free: 11.59 MB / 0.545 GB Notification: Performance of Templates: time 0.003886/0.4316, allocations: 1.774 MB / 0.7758 GB, free: 9.832 MB / 0.545 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)